Compare commits

...

4905 Commits

Author SHA1 Message Date
Nanang Izzuddin 1dab9b63ac
Add TLS/SSL backend: Windows Schannel (#3867) 2024-05-08 10:25:03 +07:00
Nanang Izzuddin 30829f03a7
Update Android JNI audio dev to use 16bit PCM only (#3945) 2024-05-08 09:09:21 +07:00
sauwming 24ac5875ff
Fixed CI Mac build failure (#3947) 2024-05-07 10:29:43 +08:00
Nanang Izzuddin ca2dacf024
Print log on successful send (#3942) 2024-05-07 09:22:35 +07:00
sauwming f406002f68
Fix warning of uninitialized value in fuzz-crypto (#3946) 2024-05-07 08:02:17 +08:00
Nanang Izzuddin f38d781a82
Fix bad address length check in pj_ioqueue_sendto(). (#3941) 2024-04-29 15:01:38 +07:00
sauwming 4f3df90a3e
Fixed PJSUA2 API to get/set Opus config (#3935) 2024-04-23 17:01:38 +08:00
sauwming 472bda5087
Support Push Notification in iOS sample app (#3913) 2024-04-23 12:59:52 +08:00
sauwming 0d2ebdc7e3
Fixed incorrect SDP buffer length calculation (#3924) 2024-04-17 11:22:14 +08:00
sauwming c5bc3d1ef5
Add function to initialize MediaFormat audio & video (#3925) 2024-04-17 11:21:57 +08:00
sauwming 72d885d5d7
Add check in siprtp sample app for inactive audio media (#3927) 2024-04-17 11:21:39 +08:00
Amilcar Ubiera 12d0468cb6
Fix to ext_fmts accessed out of stack scope. (#3916) 2024-04-15 10:25:30 +08:00
Amilcar Ubiera 6d114d71d5
pjsua_acc: Fix warnings for comparison between ‘pjsua_nat64_opt’ and ‘enum pjsua_ipv6_use’ (#3915) 2024-04-05 14:05:36 +08:00
sauwming e7e7f28f16
Improve IP address change IPv4 <-> IPv6 (#3910) 2024-04-03 18:04:51 +08:00
sauwming 86b7dd48b5
Fixed DTLS clock stoppage race (#3905) 2024-04-01 10:52:31 +08:00
sauwming 51e52062e1
Fixed Metal renderer memory leak (#3909) 2024-03-29 10:05:02 +08:00
Nanang Izzuddin 478aeb95e9
Fix data race reported by ThreadSanitizer in caching pool (#3897) 2024-03-26 15:20:44 +07:00
sauwming c0de1a4224
Prevent race condition in DTLS media stop (#3901) 2024-03-26 11:52:54 +08:00
Santiago De la Cruz 427a2b3ab8
Add some missing unlocks (#3893) 2024-03-26 11:52:13 +08:00
Amilcar Ubiera ca4b078cc1
Fix warnings for 32-bit compiler and misc fixes. (#3896) 2024-03-25 11:28:36 +08:00
Goodicus a7c4d83807
Enable Late Offer Answer Mode (LOAM) feature in the pjsua (#3869) 2024-03-21 16:58:24 +07:00
naf cfde494dc3
Add missing openssl SECLEVEL=0 support (#3890)
Previous SECLEVEL support allowed for levels 1-5.
However, openssl defines levels 0-5. [1]

Recent openssl versions (3.0+) have moved previous
popular ciphers/key lengths (i.e. RSA1024withSHA1)
into level 0, so it is now a reasonable choice to use.

Add support for level 0.

[1] https://www.openssl.org/docs/man3.2/man3/SSL_CTX_set_security_level.html
2024-03-19 15:02:07 +07:00
Nanang Izzuddin a974061441
Update listener restart in IP change: don't create/restart listener if currently no listener, also update docs that bound address setting will be reset. (#3873) 2024-03-15 09:41:16 +07:00
Andreas Wehrmann ed40439b0d
add missing unlock (#3885) 2024-03-15 10:01:08 +08:00
Fil 70332e3510
Rephrase some type definitions in the docs for a better understanding (#3880) 2024-03-12 10:28:42 +08:00
sauwming c36802585d
Fixed ioqueue backend selection configure script (#3878) 2024-03-06 13:27:37 +08:00
Nanang Izzuddin 7d2248f38a
Add checks in restarting listeners in IP change scenario (#3872) 2024-03-06 12:21:34 +07:00
sauwming 9e6a63e42f
Modified DTLS cert signature algorithm used (#3876) 2024-03-05 12:46:57 +08:00
sauwming 5ef8463d56
Video CI test on iOS device (#3868) 2024-02-27 13:01:06 +08:00
sauwming 2d6a9d4442
Check the availability of Metal device (#3871) 2024-02-27 12:54:00 +08:00
Goodicus b0be1706ea
Add an option to disable Message Composition Indication feature (MCI) (#3866) 2024-02-22 14:01:25 +08:00
Akos Denke 7178ab01a8
Add extra logging for dummy resample imp (#3863) 2024-02-21 16:32:16 +08:00
Jannis Muething fc3b03c937
Secure random number generator for SRTP key when using PJ_SSL_SOCK_IMP_APPLE (#3860) 2024-02-15 11:25:16 +08:00
Nanang Izzuddin beb06a57ca
Fix bad mem access in cancelling a timer, move _timer_id validation earlier. (#3854) 2024-02-07 15:28:32 +07:00
sauwming f33d5fc555
Activate Bitrise iOS build test (#3845) 2024-01-31 11:14:51 +08:00
sauwming a32d7c2907
Prevent data race in PJSIP presence (#3847) 2024-01-31 09:09:51 +08:00
sauwming 776c70ef01
Fixed missing unlocks in dialog event (#3849) 2024-01-30 17:29:51 +08:00
sauwming 0de8fef515
Fixed SWIG Python build failure on Mac (#3848) 2024-01-30 17:29:25 +08:00
sauwming e12a8d17a0
Fixed dialog event Coverity warnings (#3846) 2024-01-30 13:01:25 +08:00
Goodicus d692a9940f
Implement Dialog Event subscription (client only) (#3754) 2024-01-29 14:28:15 +08:00
sauwming b3ea8a29ac
Add Metal renderer for Mac and iOS (#3841) 2024-01-29 09:28:10 +08:00
Nanang Izzuddin e2b7d73ef5
Update SECURITY.md (#3840) 2024-01-24 10:34:25 +07:00
dependabot[bot] ce8d20cadf
Bump shlex from 1.1.0 to 1.3.0 in /pjsip-apps/src/rust/demo (#3839) 2024-01-23 14:55:36 +08:00
Nanang Izzuddin 569aac1b1c
Potential issues when IPv6 is disabled (#3835) 2024-01-23 12:52:53 +07:00
sauwming 712b06407f
Fixed thread leak in Mac OS (#3838) 2024-01-23 09:33:44 +08:00
sauwming d762276861
Fixed deprecation warnings on Mac and iOS (#3837) 2024-01-22 16:26:23 +08:00
Amilcar Ubiera 53d96cd5b8
pjsua_handle_ip_change: Added missing null check for on_ip_changed_progress callback (#3830) 2024-01-17 14:19:30 +07:00
sauwming 98d51a0e58
Fixed account's route set update when modifying account (#3825) 2024-01-16 10:12:09 +08:00
Riza Sulistyo b6cc71ad19
Retransmit 2xx response when transport is closed (#3828) 2024-01-15 08:57:46 +07:00
sauwming f2055ef7a3
Fixed issues when adding new media and deinitializing media (#3821) 2024-01-12 15:26:29 +08:00
sauwming 19c018affd
Fixed Service-Route update upon registration (#3823) 2024-01-10 16:55:23 +08:00
Brad Smith 26bdf998f0
Adjust code to support LibreSSL without the ASN1 macros (#3822) 2024-01-09 11:48:33 +08:00
sauwming ca0c4403ec
Fixed TURN session use after free (#3814) 2024-01-05 15:09:19 +08:00
sauwming 3ed76a11c0
Fixed data races in UPnP (#3819) 2024-01-05 15:08:59 +08:00
sauwming 86e22f4329
Enable PendingJob use on Python (#3817) 2024-01-03 19:05:46 +08:00
sauwming c6fd43208d
Fixed bug in pjsua_call_answer() (#3818) 2024-01-03 13:26:43 +08:00
Riza Sulistyo 4dfbdf7b1f
Terminate client transaction upon transport error (#3806)
* Terminate client transaction upon transport error
* Fixed UAS tsx tp error handling and PJSIP test
2024-01-02 15:57:45 +08:00
Florian Xaver 71e7087836
Fix answering a re-INVITE (#3770) 2024-01-02 13:33:16 +08:00
Nanang Izzuddin a31d048ecb
Fix parsing IPv6 TURN server in PJSUA (#3796) 2024-01-02 11:54:21 +08:00
Nanang Izzuddin 8e9857a81e
Miscelaneous Coverity fixes (#3792)
* Fix CID: 1527652, 1524421, 1524414, 1524392
* Fixed UPnP data races
2024-01-02 11:53:57 +08:00
Riza Sulistyo b981b45183
Fix return value for pjsua_set_snd_dev2() with no sound device option (#3809)
* Fix return value for pjsua_set_snd_dev2() with no sound device option

* Move initialization

* modification based on comments
2023-12-28 12:20:38 +07:00
sauwming 42a3e78d75
Fixed deprecation of Account.findBuddy() in pygui sample app (#3815) 2023-12-27 19:31:36 +08:00
sauwming 033e4d7ae3
Fixed printf format warnings (#3813) 2023-12-27 10:32:32 +08:00
sauwming 5601a20c1e
Fixed CI build failure due to Python setup (#3811) 2023-12-26 14:37:53 +08:00
sauwming ca2e450edf
Prevent immediate tsx termination upon transport error (#3805) 2023-12-18 11:56:43 +08:00
Gregor Jasny 48f3723d71
build: use C++ compiler for linking (#3766) 2023-12-15 22:12:32 +08:00
sauwming 043926a584
Fixed SDP media transport protocol info parsing (#3802) 2023-12-14 12:22:14 +08:00
sauwming 378e97ca10
Fixed deadlock between stream and ICE (#3801) 2023-12-14 12:15:58 +08:00
Brad Smith 4140143493
Switch LibreSSL code path to utilizing OpenSSL 1.1 API (#3758) 2023-12-12 12:50:56 +08:00
Olle Axelsson 5229ce2473
Use of uninitialized values (#3794) 2023-12-12 10:08:25 +08:00
Santiago De la Cruz 648aa3c3f0
pjsua: fix deadlock setting null sound device (#3799) 2023-12-11 17:08:57 +08:00
Riza Sulistyo 78b73c977d
Fix inaccurate TX packet loss percentage and stats calculation in samples (#3791) 2023-11-29 17:37:32 +07:00
Nanang Izzuddin 04f81212a3
Reset stored remote name in dialog (dlg->initial_dest) if transport is server. (#3783) 2023-11-24 14:46:31 +07:00
Florian Xaver f9ed97b87d
Fix transport loop (#3773)
Transport "loop" need set the `base.grp_lock`, as also shown in
`transport_adapter_sample.c` to have destroying of the loop transport
working.

Issue #3771
2023-11-24 09:08:35 +07:00
Ihor Olkhovskyi 9287ac21e6
add PJSUA_DETECT_MERGED_REQUEST parameter (#3784) 2023-11-22 15:22:48 +08:00
Nanang Izzuddin e235868cef
Add option to shutdown all transports on IP change (#3781) 2023-11-21 09:23:31 +07:00
silentindark 6157218806
Fix warnings (#3782) 2023-11-20 12:38:55 +08:00
silentindark c224f26420
Fix warnings (#3778) 2023-11-16 15:30:03 +08:00
jimying 5188d056a7
base64: support encode/decode with URL and Filename Safe Alphabet (#3748) 2023-11-16 13:52:06 +07:00
sauwming ca5255795a
Add SIP transport data received callback (#3751) 2023-11-06 20:17:49 +08:00
Brad Smith da91020a44
sdp.c: don't pass NULL pointer to log string format (#3757) 2023-11-03 19:15:07 +08:00
Gregor Jasny cf4f2d84dc
Hide private symbols (#3756) 2023-11-03 12:14:36 +08:00
sauwming 58a101c945
Fixed race condition in ACK handling of INVITE message (#3752) 2023-11-03 11:55:21 +08:00
sauwming 528f90adfb
Check for buffer EOF in scanner (#3753) 2023-11-03 11:40:51 +08:00
Riza Sulistyo b3e5f76788 Changed version to 2.14-dev 2023-11-01 16:45:39 +07:00
Riza Sulistyo 08578e86ee Changed version to 2.14 (2)-Change PJ_VERSION_NUM_EXTRA 2023-11-01 16:37:28 +07:00
Riza Sulistyo b1c5377a2b Changed version to 2.14 2023-11-01 11:41:09 +07:00
Nanang Izzuddin e4bcc71f59
Miscellaneous fix (#3750)
* Fix various compile warnings (on MSVC2005 and Android)

* A function declaration without a prototype is deprecated in all versions of C

* Fix build warning on VS2022

* Minor update on sample app pjsua2 for Android Kotlin: add param to avoid activity recreation in activity config changes, useful in maintaining video window sizes on orientation change.

---------

Co-authored-by: sauwming <ming@teluu.com>
Co-authored-by: Riza Sulistyo <trengginas@users.noreply.github.com>
2023-11-01 11:32:43 +07:00
Riza Sulistyo 33f64ba933
Add TLS initial receive timeout for server connection (#3744) 2023-10-30 11:08:01 +08:00
Amilcar Ubiera f2da44b720
Fix to uninitialized ssock in ssl_sock_imp_common. (#3742) 2023-10-27 10:45:22 +07:00
bogdan-mabo e4cfc9b055
Ensure tdata ref count is decremented in all scenarios (#3739)
Ensure tdata ref count is decremented in the unlikely case the cseq header is not valid.
2023-10-27 10:42:46 +07:00
Nanang Izzuddin 5651d24ddb
Fix possible race condition in NAT detect between timer and socket. (#3747) 2023-10-25 11:00:59 +07:00
Riza Sulistyo c94b5dd174
Fix tdata leak when pjsip_inv_initial_answer() return error (#3741)
* Fix tdata leak when pjsip_inv_initial_answer() return error

* Set the inv->last_answer with tdata

* Modification based on comments

- Add doc
- Add pjsip_tx_data_dec_ref() on failure case

* Modify doc
2023-10-19 20:53:40 +07:00
sauwming 6aa5349efd
Fixed buffer overflow when using Video Toolbox (#3738) 2023-10-13 23:39:12 +08:00
sauwming 5c5b3281c0
Fixed issue when using setting to use AVPF and receive AVP (#3729) 2023-10-13 23:37:00 +08:00
sauwming bd9db5fe87
Fixed race condition between TURN session destroy and incoming data processing (#3730) 2023-10-13 23:35:39 +08:00
sauwming 03faa1c983
Fixed bug in SRTP ROC checking when using ICE (#3733) 2023-10-13 23:34:32 +08:00
sauwming 969bec9987
Fixed DTLS handshake issue when RTCP address changes (#3732) 2023-10-13 23:30:54 +08:00
Amilcar Ubiera f33ef2dba2
Added missing pj_thread_destroy for media event manager. (#3726) 2023-10-13 12:31:53 +08:00
sauwming eaf0f4516d
Changed DTLS transport to use recursive mutex, instead of a simple one (#3731) 2023-10-09 15:09:51 +08:00
Amilcar Ubiera 5c28fc6368
Fix to ssl_sock_imp_common warning 'io_read': 'void' function returning a value MSVC(C4098) (#3727) 2023-10-09 13:27:39 +08:00
Nanang Izzuddin 4f8b7513ae
Fix pjsip_mwi_notify() may be called without body (#3723) 2023-10-04 13:08:30 +07:00
Riza Sulistyo be0c6c4049
Add on_rejected_incoming_call() callback (#3683)
* Add on_rejected_incoming_call() callback

* Modification based on comments

- save incoming rdata to be passed as callback parameter

* Fix failed unit test

* Call the callback from pjsua_call_on_incoming()

* Remove tdata from callback param

* Modification based on comments

* Modification based on comments

* Add doc

* Fix build error on C89 compiler (e.g: VS2005) and change the status code to using defined/enum error for uniformity

* Add call_id to the callback param
2023-10-03 18:04:37 +07:00
Nanang Izzuddin 6dc9b8c181
Merge pull request from GHSA-f76w-fh7c-pc66
* Add group lock to media transport

* Also add group lock to SRTP-DTLS

* Put lock protection to avoid race condition between destroy() & dtls_on_recv()
2023-10-03 10:59:03 +08:00
Riza Sulistyo 2c1207c30b
Call pjmedia_srtp_deinit_lib() when srtp_init() fail (#3719) 2023-10-02 21:08:42 +07:00
Nanang Izzuddin b8fbdb2502
Fix build errors & warnings on MSVC2005 (#3722) 2023-10-02 09:00:56 +07:00
sauwming e43a6dac98
Fixed deadlock between SIP transaction and dialog (#3714) 2023-09-29 10:18:07 +08:00
sauwming 05d03ad9ee
Fixed Coverity and build warnings (#3707) 2023-09-21 17:43:10 +08:00
sauwming 7ff31e3113
Set default SSL sockopt param to have TCP_NODELAY for GnuTLS backend (#3708) 2023-09-20 18:04:13 +08:00
sauwming cde87db7d7
Add option to set RX telephone-event PT (#3705) 2023-09-19 14:51:56 +08:00
JRazek 01d37bf15a
update rust bindgen 0.60.1 -> 0.66.1 (#3679) 2023-09-18 15:25:54 +08:00
Nanang Izzuddin d21ff6106d
Add MSG_NOSIGNAL flag to sendto() (#3695) 2023-09-18 12:37:37 +07:00
sauwming 431ddc71ed
Add video to iOS swift pjsua2 sample app (#3381) 2023-09-18 10:57:28 +08:00
Nanang Izzuddin ad152c2f42
Update video handling in Android PJSUA2/SWIG sample apps (#3673) 2023-09-12 11:49:51 +07:00
Nanang Izzuddin 31d5e19fa0
Fix race condition in registration in updating last transport used. (#3680) 2023-09-06 13:03:40 +07:00
Nanang Izzuddin eff4826803
Docs: more fixes on sample/source links (#3675) 2023-09-06 09:56:26 +07:00
Jad K. Haddad e17b92b973
Fix invalid pointers #3670 (#3672) 2023-08-31 17:07:02 +08:00
Nanang Izzuddin 486053782b
Fix late PJSUA2 object destroy on Android (#3674) 2023-08-31 13:40:43 +07:00
sauwming ee5879bda9
Fixed RTCP packet lost calculation (#3653) 2023-08-31 08:13:36 +08:00
Nanang Izzuddin 013c30304d
Fix docs for broken PJLIB sample links (currently the samples are doxygen pages and breathe-apidoc does not process doxygen page) (#3671) 2023-08-29 09:17:53 +07:00
Nanang Izzuddin 43a338e4c9
Fix bug in PJSUA2 media port signal adjustment info (#3668) 2023-08-28 16:52:03 +07:00
Riza Sulistyo d51e247135
Add option to disable renegotiation on TLSv1.2 or earlier (#3663)
* Add option to enable SSL_OP_NO_RENEGOTIATION on OpenSSL

* Add the option to runtime configuration

* Modification based on comments

* Add the implementation files and pjsua2 modification
2023-08-23 09:52:04 +07:00
Nanang Izzuddin fd8880397f
Add native SSL socket instance in TLS verification callback (#3630) 2023-08-22 13:49:07 +07:00
Riza Sulistyo af82c9085a
Prevent crash when reading cert file on Apple's Network framework SSL backend (#3664) 2023-08-22 11:23:30 +07:00
sauwming 828d8d1907
Avoid race condition in SSL's on_handshake_complete() (#3448) 2023-08-08 09:19:30 +08:00
Evgeniy c3575d05d2
Set default values in tonegen sample (#3651) 2023-08-04 11:02:07 +07:00
Shubham Fuloria 8f1e366560
Resolved: VidGUI Sample Application Linking Error (#3637) 2023-08-03 17:35:57 +07:00
Nanang Izzuddin 63b2f9ba41
Possible infinite loop in iOS replace socket (#3650) 2023-08-03 10:26:19 +07:00
sauwming 82d3fcff54
Fixed potentially duplicate RTCP FB attribute on response (#3643) 2023-07-21 16:42:28 +08:00
sauwming 378d752e85
Fixed pjmedia wsola test failure (#3641) 2023-07-20 17:19:24 +08:00
Nanang Izzuddin 5969541128
Add API to limit retransmission count for outgoing requests in transaction layer (#3631) 2023-07-20 09:31:29 +07:00
Mike Bradeen d2c0c3daf3
Split logging to keep Warning regarding dropped packet at level 2 while moving the packet contents to 4 (#3476) (#3636) 2023-07-20 10:23:33 +08:00
Matthew Fredrickson 1a324c632b
If we don't clear the thread local error queue prior to calling SSL functions, sometimes other connections leave stale errors which will be returned and falsely attributed to the current SSL connection when calling SSL_get_error() (#3633) 2023-07-17 14:44:57 +08:00
Shubham Fuloria 10d1cd9b75
redeclared variable error fixed (#3629) 2023-07-17 08:50:10 +08:00
Nanang Izzuddin 54bce14d2d
Fix compile errors on old compilers (C90 prohibits variable decl in mid block, C++98 does not have Vector::data(), MSVC2005 project misses some new SRTP files) (#3625) 2023-07-11 13:07:37 +07:00
Nanang Izzuddin cea2a90c1f
Update transport config docs regarding QoS settings for TLS (#3624) 2023-07-10 14:08:13 +07:00
sauwming bb09b94889
Transaction state not propagated properly to on_call_tsx_state() cb (#3614) 2023-07-07 10:01:46 +08:00
Riza Sulistyo 21f40c8625
Support Python3 for github CI (#3612)
* Support Python3 for github CI

* Fix runtime error due to changes in telnetlib for python3

This will also remove support for python2

* Fix runtime error due to changes in socket lib

* Fix runtime error

* Fix error

* Replace imp to importlib to fix warning

* Fix some error

- On windows, error EACCESS when binding/opening socket
- Fix UnicodeEncodeError/UnicodeDecodeError
2023-07-06 15:38:04 +07:00
Riza Sulistyo c5d7e438cb
Only validate public address when IP address is supplied on TCP/TLS (#3599)
* Only validate public address when IP address is supplied on TCP/TLS

* Add doc
2023-07-05 11:16:06 +07:00
Nanang Izzuddin 617428685d
Update the QoS DSCP map to follow RFC4594 guidelines (#3610) 2023-07-05 10:44:07 +07:00
Nanang Izzuddin ca7e2a3017
Bug in RTCP-FB NACK packet generation (#3608) 2023-07-05 10:43:41 +07:00
Riza Sulistyo 914ce755a6
Support OpenSSL3 with "no-deprecated" build option (#3603) 2023-07-05 11:39:01 +08:00
Riza Sulistyo 8e69c977c7
Don't call SSL_shutdown() when receiving SSL_ERROR_SYSCALL or SSL_ERROR_SSL (#3577) 2023-07-05 11:38:21 +08:00
sauwming a0ac2478fc
Implement DTLS-SRTP for RTCP (#3571) 2023-07-05 11:37:44 +08:00
sauwming b6ce6c4ce7
Send RTCP even if the media stream is inactive (#3615) 2023-06-28 15:40:48 +08:00
Jaco Kroon 3ad3cdbf14
Fix wave port creation if the input wave file contains exactly one frame. (#3596) 2023-06-27 14:07:39 +08:00
sauwming db78bc0c46
Check the return status of pj_getaddrinfo() when creating contact (#3601) 2023-06-27 14:07:04 +08:00
sauwming c600708a3b
Make evsub expiry duration consistent (#3602) 2023-06-20 10:38:02 +08:00
sauwming a5023f7fdd
Use configured bound or public address for outgoing UDP SIP messages (#3595) 2023-06-19 09:38:13 +08:00
Riza Sulistyo 2c56bdceaf
Xamarin samples for Android and iOS (#3584) 2023-06-16 10:44:15 +08:00
sauwming 0e89bbe0e3
Update ipjsua swift sample app (#3342) 2023-06-16 10:43:24 +08:00
Riza Sulistyo 935453830e
Check STUN tdata before sending the message (#3594)
* Check STUN tdata before sending the message

* Modification based on comment

- Add and check is_destroying to pj_stun_client_tsx

* Combine check
2023-06-15 18:40:14 +07:00
sauwming 48800cbfbb
Add option for dual stack IPv4&IPv6 account config (#3590) 2023-06-09 13:59:35 +08:00
Matthew Fredrickson de317c6383
Locking fix so that SSL_shutdown and SSL_write are not called at same time (#3583) 2023-05-30 17:33:05 +08:00
sauwming 0665c17f02
Fixed coverity warning and various warnings (#3578) 2023-05-25 17:47:25 +08:00
sauwming c5b847a988
Add PJSUA2 interface to get and put audio frames (#3569) 2023-05-23 13:20:21 +08:00
sauwming 87cd4afafb
Generate media event upon Oboe error (#3570) 2023-05-18 09:48:48 +08:00
Nanang Izzuddin 1af96abb89
Update SDP o= and t= lines to use 64 bit unsigned integer (#3565) 2023-05-17 11:53:31 +08:00
sauwming 7816d95093
Fixed incorrect RTCP stat calculation (#3557) 2023-05-17 07:14:39 +08:00
sauwming e8fa2237f2
Support for codec with non-integer ptime (#3555) 2023-05-16 13:13:10 +08:00
sauwming e8f58dd6d6
Add ability in stream to modify video codec bitrate on the fly (#3556) 2023-05-16 13:12:53 +08:00
sauwming 022ce68be9
Add telephone events if we maintain remote PT mapping (#3559) 2023-05-16 13:07:24 +08:00
sauwming de023c12fa
Add device id in audio device info (#3563) 2023-05-16 13:06:51 +08:00
jimying 537958d0a7
activesock: check remaining buffer size to avoid buffer overflow (#3560) 2023-05-16 13:04:50 +08:00
sauwming 64eefdfd7b
Fixed assertion when starting video preview (#3567) 2023-05-16 13:04:27 +08:00
sauwming 78fc800239
Fixed PJSIP Developer's Guide link in sip_module doc (#3566) 2023-05-16 13:04:08 +08:00
jimying b4921bfcd9
Add close-on-exec flag (#3553) 2023-05-16 11:59:37 +08:00
Nanang Izzuddin 7c4035ba00
Fix frame copy for stereo mode in WebRTC-AEC2 (#3561) 2023-05-15 09:21:27 +08:00
Nanang Izzuddin ee37fc467b
Add local addr info in SSL handshake failure log (#3558) 2023-05-15 09:21:05 +08:00
Nanang Izzuddin d03000ac2d
Handle bad NAT type info in SDP (#3552) 2023-05-15 09:20:36 +08:00
sauwming 56ca435999
Fixed local address returned by API pjsip_tpmgr_find_local_addr() (#3548) 2023-05-15 09:20:11 +08:00
Riza Sulistyo 07265a3f28
Enable specifying format video when opening video preview using PJSUA2 API (#3547) 2023-05-15 09:19:54 +08:00
sauwming 454a6d55a5
Implement merged requests detection (#3541) 2023-05-15 09:19:35 +08:00
Nanang Izzuddin de58d2f4d0
Avoid ICE agents seeing different valid ICE candidate pairs (#2929) 2023-05-15 09:17:59 +08:00
jimying 512e62b6be
Fix minor error: ffmpeg_frame_unref() Missing return statement (#3554) 2023-05-10 10:30:51 +07:00
Riza Sulistyo ad14f860d0
Add option to maintain payload type to codec mapping to make sure one payload type is not used by different codec (#3468) 2023-05-08 14:26:08 +08:00
sauwming f1926cc1a6
Fixed option to execute command to all buddies in pjsua sample app (#3535) 2023-05-08 13:41:37 +08:00
sauwming 98e4590cf0
Add SDP signaling for RTCP-XR (#3522) 2023-05-08 13:41:23 +08:00
sauwming b11a48501a
Fixed WAV player when there is unknown chunk (#3521) 2023-05-08 13:41:10 +08:00
sauwming 5b23889a79
Clarify pjsip_inv_create_uac() doc for use case where app specifies the local SDP later (#3520) 2023-05-08 13:40:43 +08:00
Andreas Wehrmann 2b2bd871f7
don't assert when attempting to set PJ_DNS_RESOLVER_MAX_NS nameservers (#3549) 2023-05-05 16:05:36 +08:00
Sun Dro e210c69104
Fixed segmentation fault in pjmedia_vid_stream_destroy (#3546) 2023-05-03 10:35:13 +08:00
Sun Dro 4a17c672b2
Fixed memory leak while decoding video packet with ffmpeg (#3539) 2023-05-01 19:57:47 +08:00
sauwming d6d67b8ac6
Parse SDP connection info with multicast address (#3529) 2023-05-01 09:08:18 +08:00
sauwming dc4778ed8a
Fixed crash when incoming SIP transport is immediately closed (#3527) 2023-05-01 09:03:14 +08:00
sauwming 3fa60838cc
Prevent data race in stream when sending RTCP (#3528) 2023-05-01 09:02:33 +08:00
sauwming 27d522d91d
Fixed DNS SRV response processing when SRV entries contain the same host (#3531) 2023-05-01 09:02:05 +08:00
sauwming f3a261345f
Fixed crash when answering an outgoing call in early state (#3537) 2023-05-01 09:01:40 +08:00
sauwming 44b9c36c74
Modify the DTMF duration default (#3540) 2023-05-01 09:01:10 +08:00
sauwming 59814255a1
Fixed stack buffer underflow if crypto is zero (#3545) 2023-05-01 09:00:50 +08:00
jimying 0a142290d1
Fix minor error: duplicate link pjmedia lib (#3544) 2023-04-28 17:46:21 +08:00
jhting aa99bc23ae
update pjsua_media.c is_media_changed (#3536) 2023-04-28 09:46:19 +08:00
sauwming c7f3063373
Update Github issue template (#3533) 2023-04-27 18:55:30 +08:00
jimying a3035bcaa4
Fix PJ_CC_NAME/VER incorrec when use clang compiler to build (#3523) 2023-04-27 17:47:44 +08:00
jimying c15793f86e
Do not run cron workflow(coverity scan) in forks (#3516) 2023-04-27 15:46:48 +08:00
sauwming 8d9312913b
Fixed failed CI pjsua tests (#3517) 2023-04-24 08:15:36 +08:00
sauwming deb10fbbb6
Fixed crash when sip_inv reason is not NULL terminated (#3518) 2023-04-24 08:15:11 +08:00
Florian Xaver a9f3204bdc
Fix PJSUA2 documentation (#3473)
Co-authored-by: sauwming <ming@teluu.com>
2023-04-21 13:29:27 +07:00
Nanang Izzuddin 76523f3a7e
Fix memory leak in PJSUA2 timer (#3507) 2023-04-19 09:29:18 +07:00
sauwming 72b46f74dd
Fixed deadlock between SIP transaction and dialog (#3492) 2023-04-14 12:22:10 +08:00
Riza Sulistyo 19f083d317
Fix undefined "IN6_IS_ADDR_LINKLOCAL" on Visual Studio (#3503) 2023-04-14 10:11:04 +07:00
sauwming e7c74cca42
Add sleep in ioq kqueue and fixed failed ioq stress test (#3499) 2023-04-13 11:15:27 +08:00
sauwming f5fab2619e
Fixed build failure if PJ_JNI_HAS_JNI_ONLOAD is disabled (#3496) 2023-04-13 11:14:48 +08:00
sauwming 79b4a3d83d
Fixed race condition between session timer and call disconnection (#3494) 2023-04-11 18:16:52 +08:00
Riza Sulistyo 90a704b0c6
Change socket assertion check to allow socket handle value 0 (#3500)
* Change socket assertion check to allow socket handle value 0

* Modification based on comments

- Revert changes in sock_qos_symbian.cpp
- Remove check for sock value 0
2023-04-11 09:14:04 +07:00
sauwming 912573e4cb
Fixed use-after-free in sip_100rel (#3493) 2023-04-10 14:57:16 +08:00
sauwming 86c919fb46
Fixed memory leak in AudDevManager (#3491) 2023-04-10 08:11:35 +08:00
sauwming def3e179c3
Fixed max hostname default value and usage (#3478) 2023-04-06 14:27:12 +08:00
sauwming f803da3f19
Fixed bug when converting from n to 1 in stereo port (#3486) 2023-04-06 12:19:12 +08:00
sauwming ef75213af3
Fixed coverity warnings (#3487) 2023-04-06 12:18:48 +08:00
sauwming 382b0a63f1
Fixed buffer overflow in pjsua app cli (#3488) 2023-04-06 12:18:28 +08:00
jimying a4c9dc0c9b
Fix scan-build reports (#3471) 2023-04-06 10:26:10 +08:00
Riza Sulistyo 410c69c6e1
Handle PJSIP_EBUSY error when sending Registration after calling pjsua_handle_ip_change() (#3021) 2023-04-05 14:42:00 +08:00
sauwming b7b51be1c1
Add SRTP ROC checking for video (#3479) 2023-04-05 11:49:39 +08:00
sauwming 2c4bf48fb5
Increase log level for dropped packet in sip_transport (#3480) 2023-04-05 10:22:59 +08:00
Riza Sulistyo da4a3af83b
Fix ipjsystest build error (#3467) 2023-04-04 18:16:51 +08:00
jimying e52a1a325d
Minor modify (ice_strans): incorrect free resource (#3481) 2023-04-04 18:16:28 +08:00
Nanang Izzuddin 11a91fc1df
Add Reason/Warning header in disconnecting call (#3475) 2023-04-04 15:37:52 +07:00
Olle Axelsson 340a1b21e4
2nd INVITE not being handled (#3458) 2023-03-30 14:31:06 +08:00
Benny Prijono 17ee152f97
Prevent CI actions from running twice on some PR commits (#3470) 2023-03-30 13:15:53 +07:00
Benny Prijono f29892c470
Merge pull request #3390 from pjsip/coverity01
Support Coverity Scan
2023-03-30 07:17:56 +07:00
Oliver Epper 64e136e5a2
zero initialize the message buffer (#3447) 2023-03-29 15:33:17 +08:00
sauwming bdc66d4d41 Revert previous fix in timer test 2023-03-29 14:43:45 +08:00
bennylp d63c18136a Fix gcc sign-compare warnings 2023-03-29 13:30:36 +07:00
bennylp 2a69b0a5a8 Fix compilation warnings with stricter gcc options: -Werror -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-shift-negative-value 2023-03-29 11:57:21 +07:00
bennylp 52fe443ea1 Minor changes based on reviews 2023-03-29 11:28:27 +07:00
bennylp 336bc36e28 Merge branch 'master' of https://github.com/pjsip/pjproject into coverity01 2023-03-29 07:34:40 +07:00
bennylp d32ec571f5 (Take 4): testing new GH action in this branch 2023-03-28 17:23:37 +07:00
bennylp 326bf6d00a (Take 3): testing new GH action in this branch 2023-03-28 14:35:59 +07:00
bennylp 1060cc77f2 (Take 2): Temporarily add pull_request trigger to register new action in this branch 2023-03-28 14:07:07 +07:00
bennylp 9fe350735e Temporarily add pull_request trigger to register this action 2023-03-28 14:01:57 +07:00
bennylp 91470a0b99 Add GH actions for coverity scan 2023-03-28 11:52:47 +07:00
bennylp 7a058dee81 Replace unsafe string functions such as sprintf, strcpy with the safer counterparts e.g. snprintf, strxcpy 2023-03-27 18:48:25 +07:00
Olle Axelsson 2ec664fcb2
Consider session terminated on 408 and 481 response (#3457) 2023-03-27 10:55:19 +08:00
sauwming 6f93c61854 Fixed uncompleted patch for SSL and pjsua_pres 2023-03-24 12:40:40 +08:00
bennylp 6f8b87c562 Merge branch 'coverity01' of https://github.com/pjsip/pjproject into coverity01 2023-03-24 11:11:27 +07:00
bennylp 5ed9461bbe Replace unsafe string functions such as strcpy, strncpy, strcat, and sprintf with newly implemented pj_ansi_strxcpy, pj_ansi_strxcpy2, and pj_ansi_strxcat 2023-03-24 11:11:20 +07:00
sauwming 1af53dd4ae Fixed more warnings 2023-03-23 19:05:43 +08:00
sauwming 978463060d Fixed incorrect SSL patch 2023-03-23 13:53:57 +08:00
sauwming dd15679ae4 Fixed warnings in pjsip 2023-03-23 13:21:05 +08:00
sauwming 02356e87f7 Fixed warnings in pjlib, pjmedia, and pjnath 2023-03-23 12:10:45 +08:00
bennylp 2aaad7daf5 Enable more features in config_site.h to be checked by coverity scan 2023-03-23 09:11:14 +07:00
bennylp 6340cd143f Fixed printf style format warnings 2023-03-23 08:30:44 +07:00
bennylp 963192c76d Merge branch 'coverity01' of https://github.com/pjsip/pjproject into coverity01 2023-03-22 08:45:48 +07:00
bennylp 398fabd77f Fixed printf style format warnings 2023-03-22 08:45:23 +07:00
sauwming 1075aa7afc
Fixed TURN allocation parameter (#3452) 2023-03-22 08:23:58 +08:00
sauwming b9005d85b9
Fixed adding note to a tuple when adding RPID element (#3453) 2023-03-22 08:23:33 +08:00
sauwming eaa8c37872 Fixed build failure due to printf format security error 2023-03-21 13:55:08 +08:00
sauwming da72b21161 Fixed build failure on Bitrise Android 2023-03-21 13:45:11 +08:00
sauwming d085750146 sip_transport_udp: Fixed logically dead code because of incorrect packet size check 2023-03-21 13:25:43 +08:00
sauwming d9ad85a04d transport_ice: Fixed comparison of ICE callback 2023-03-21 13:21:42 +08:00
sauwming b71c7e8092 transport_ice: Fix rtcp mux address copy since addr can be NULL 2023-03-21 13:14:34 +08:00
sauwming 3d32f26e32 sip_inv: Add checking of pjsip_dlg_create_response() return status 2023-03-21 13:13:46 +08:00
sauwming 51072289a3 Apply printf decor to pj_perror() 2023-03-21 11:48:47 +08:00
sauwming 29d872af40 Merge branch 'master' into coverity01 2023-03-20 18:29:57 +08:00
sauwming 86b2ed38be Fixed printf format warnings (part 1) 2023-03-20 18:29:25 +08:00
sauwming 74b0df1b04
Check if interface address returned by pj_getipinterface() is link-local address (#3442) 2023-03-20 14:25:44 +08:00
sauwming 195cd3740f
Modify default value of PJ_MAX_HOSTNAME (#3438) 2023-03-20 14:25:16 +08:00
sauwming 15902a8184
Respond with ACK first before hanging up call for dialog fork (#3445) 2023-03-20 09:38:49 +08:00
bennylp f94ec926da Fix coverity scan warnings 2023-03-17 16:24:38 +07:00
jimying 651df5b501
fuzz: PJMEDIA_HAS_VIDEO macro protect (#3446) 2023-03-17 11:31:15 +08:00
bennylp ce8508ab51 Fixed coverity scan warnings 2023-03-16 16:51:42 +07:00
Arjun 3fd4726d7f
oss-fuzz ideal integration (#3430) 2023-03-16 16:29:59 +08:00
Riza Sulistyo 1d4705b0f6
Return error when calling pjsua_call_get_stream_info()/pjsua_call_get_stream_stat() on an inactive stream (#3412) 2023-03-16 15:08:22 +08:00
jimying 649c05eb70
Fix scan-build (Clang Static Analyzer) build fail (#3443) 2023-03-16 14:07:02 +08:00
bennylp 319bbab087 Fix coverity scan warnings 2023-03-15 17:15:00 +07:00
bennylp 7615589583 Fixed misc potential bugs as detected by coverity scan 2023-03-15 10:06:02 +07:00
bennylp 8c2f28ee8a Fix bug in PJ_ASSERT_ON_FAIL if exec_on_fail is "break" or "continue" 2023-03-15 06:43:29 +07:00
bennylp 87294b91a1 Fix compilation warnings/errors after merge 2023-03-15 06:41:30 +07:00
bennylp b1873fcae4 Add coverity scan badge in README 2023-03-15 06:08:15 +07:00
bennylp a2abae0a40 Fixed coverity warnings 2023-03-15 05:23:10 +07:00
sauwming 528afc8cea Merge branch 'master' into coverity01 2023-03-14 21:08:58 +08:00
jimying 8c41a770fe
Use PJ_ARRAY_SIZE() replace sizeof()/sizeof() (#3439) 2023-03-14 18:33:54 +08:00
jimying dfe315ac5f
makefile: use $(MAKE) replace make (for BSD compatibility) (#3436) 2023-03-14 17:36:44 +08:00
sauwming 874ca0dfd6
Fixed pjsua app cli redirection answer (3xx) (#3437) 2023-03-14 10:59:00 +08:00
sauwming fd6125c4dd
Fixed buffer overflow in h264 unpacketizer (#3434) 2023-03-14 10:25:46 +08:00
sauwming 4680c7add7 Merge master 2023-03-14 10:24:59 +08:00
jimying b4184bb56d
Fix build with CFLAGS -Wextra warning reports (#3428) 2023-03-14 09:56:18 +08:00
sauwming d1c5e4da5b
Merge pull request from GHSA-q9cp-8wcq-7pfr
* Prevent heap buffer overflow when parsing DNS packet

* Fixed incorrect check in get_name*()
2023-03-14 09:45:23 +08:00
Andreas Wehrmann 5e2d564781
don't shadow local function parameter (#3435) 2023-03-13 17:11:01 +08:00
jimying 065599d8f2
Fix strtol overflow (#3426) 2023-03-13 16:09:47 +08:00
Nanang Izzuddin 0321bae17d
Fix SSRC media source in generating RTCP-FB. (#3429) 2023-03-13 11:14:27 +07:00
sauwming 669465a7d0
Add more fuzzing tests (#3422) 2023-03-13 09:18:54 +08:00
Jad K. Haddad a2ceae2652
Rust bindings for pjsua (#3275) 2023-03-13 09:05:20 +08:00
Kexin Li ea5452e85d
[Fix #3385 Assertion error] return status for proper status checking afterwards (#3389) 2023-03-13 09:04:39 +08:00
sauwming 93b6d942cf
Limit the number of searched blocks searched for pool allocation (#3423) 2023-03-13 07:58:05 +08:00
Florian Xaver f60d1c4746
Add function for printing SDP attributes (#3417) 2023-03-07 10:17:23 +07:00
sauwming 456b38700c Fixed reports classified as high impact 2023-03-03 10:53:22 +08:00
Riza Sulistyo 88d2c65d57
Add doc to pjsua_config::enable_unsolicited_mwi and UaConfig::mwiUnsolicitedEnabled (#3415)
* Add doc to pjsua_config::enable_unsolicited_mwi and UaConfig::mwiUnsolicitedEnabled

* Fix text
2023-03-01 19:30:56 +07:00
Riza Sulistyo 5fbf6b2537
Check tp_ref validity before referencing it in pjsip_tpmgr_acquire_transport2() (#3413) 2023-03-01 11:20:37 +07:00
Riza Sulistyo a672d40b56
Handle incoming MWI when there is no available account (#3411)
* Handle incoming MWI when there is no available account

* Remove not needed pjsua_acc_find_for_incoming()

* Change the response code

* Add the response text

* Change response text
2023-02-28 15:16:04 +07:00
sauwming ecddafbb1d Fixed warnings (3) 2023-02-28 12:50:51 +08:00
sauwming b4c4481866
Fixed bug in resample_resample (#3405) 2023-02-28 09:51:32 +08:00
Riza Sulistyo 2e0cc0123f
Fix multiple definition of pj_time_local_to_gmt() and pj_time_gmt_to_local() (#3408) 2023-02-28 07:54:17 +07:00
Nanang Izzuddin f7b8768a9a
Terminate dialog after receiving 481/408 response for UPDATE in early dialog state. (#3393) 2023-02-27 09:50:18 +07:00
sauwming b08b90edab
Fixed SDP fmtp parsing (#3401) 2023-02-27 09:53:14 +08:00
sauwming 24b0c483a0
Fixed video port's format change race (#3398) 2023-02-27 09:52:24 +08:00
jimying a27867898e
Misuse PJ_DECL in some function define (#3402) 2023-02-23 19:37:03 +08:00
郑澍禾 15dc790931
Fixed incorrect buffer count (#3403) 2023-02-23 19:36:40 +08:00
Nanang Izzuddin b0a90b1ab2
Allow dialog establishment when remote does not provide To tag (#3394) 2023-02-23 12:26:54 +07:00
sauwming 37862667bf
Use better initial values for pool initialization (#3396) 2023-02-23 12:47:08 +08:00
sauwming 3203025dcf
Add Android audio driver names (#3399) 2023-02-23 11:48:01 +08:00
jimying 497d05d99c
ffmpeg_codec: ffmpeg_codec_open() should use pjmedia_vid_codec_param_clone() copy codec param (#3384) 2023-02-22 13:07:03 +08:00
sauwming 433ddab27a
Fixed native iOS preview issue (#3350) 2023-02-22 13:04:26 +08:00
sauwming 5a80dd2e3d
Fixed buffer memory usage in video conference (#3395) 2023-02-22 13:03:50 +08:00
bennylp 74c07aa476 Merge branch 'coverity01' of https://github.com/pjsip/pjproject into coverity01 2023-02-21 18:25:09 +07:00
bennylp b97614d1bc Drop pj_ansi_safe_strncpy() in favor of safe pj_ansi_strncpy(), fix incorrect use of pj_ansi_safe_strncpy() 2023-02-21 18:25:04 +07:00
sauwming 6dc42dfcd4 Fixed more warnings 2023-02-21 15:06:23 +08:00
bennylp 6766bf5777 Fix strncpy warning for gcc and clang 2023-02-21 13:04:01 +07:00
sauwming 66c101f3d3
Add API to shutdown TURN session with the appropriate error status (#3392)
* Add pj_turn_session_shutdown2()

* Minor: fix indentation
2023-02-20 19:00:57 +08:00
jimying efd05c3ca2
make the timer more precise (#3391) 2023-02-20 16:58:50 +08:00
bennylp 4e03c60ce2 Merge branch 'coverity01' of https://github.com/pjsip/pjproject into coverity01 2023-02-20 14:41:39 +07:00
bennylp 8038b4e640 Fix error in upload syntax 2023-02-20 14:40:49 +07:00
sauwming 221673dc39 Fixed several warnings (combined) 2023-02-20 14:55:06 +08:00
sauwming 086d9d2206
Fixed ioq winnt build failure (#3358) 2023-02-20 12:09:22 +08:00
Riza Sulistyo 5a2d61cad7
FIx Android Mediacodec h264 SPS/PPS decoder config (#3360) 2023-02-20 12:08:00 +08:00
sauwming e99cb7bbb3
Formulate headers in new request upon receiving 3xx (#3386) 2023-02-20 12:07:23 +08:00
bennylp 5fe4bc1972 Fix usages of strncpy(), pj_ansi_strncpy(), and strncat() by replacing them with pj_ansi_safe_strncpy() and pj_ansi_safe_strcpycat() 2023-02-18 12:51:49 +07:00
bennylp 2315043b20 Fix gcc warnings (Ubuntu 22.04, ffmpeg 4.4.2, openssl 3) 2023-02-18 08:36:56 +07:00
bennylp f2f028f0ae Always rebuild the project to avoid submitting stale result 2023-02-17 00:57:34 +00:00
bennylp 105a9787c7 Add README.md 2023-02-17 00:18:03 +00:00
bennylp fbc42195e8 Draft version of coverity scan script 2023-02-16 13:19:02 +00:00
bennylp 21e9819539 Show config in pjlib-test, add SSL config 2023-02-16 13:18:34 +00:00
jimying 8054a92cd5
Fix doc error (#3375) 2023-02-16 10:03:01 +08:00
Nanang Izzuddin cba612aa98
Fix SDP m= line parser, verify port & port count are numeric (#3382)
* Fix SDP m= line parser, verify port & port count are numeric & add overflow check.
* Change SDP media parser to parse media type as token (was until space).
* Handle the case of missing c= line (allowed when port is zero) in sipecho.
* Check & update pj_strtoul() usages in SDP
* Add the problematic SDP to fuzzing seed corpus.
2023-02-15 16:39:56 +07:00
Benny Prijono 897d4066a4
Add oss-fuzz badge 2023-02-15 13:37:09 +07:00
Benny Prijono 18003e331b
Add link to Audio Troubleshooting 2023-02-15 13:19:14 +07:00
Nanang Izzuddin 98adc154db
Fix assertion in sipecho sample due to sending response statelessly on a stateful transaction (#3383)
Update pjsip_endpt_respond_stateless() to accept a terminated tsx, and update sipecho to use it.
2023-02-14 15:38:49 +07:00
Riza Sulistyo 642179a0e5
Make sure that NOTIFY tdata is set before sending it. (#3373) 2023-02-13 11:08:37 +08:00
jimying 0d4201f956
Fix pjmedia_converter_convert2() param declare and define is not match (#3370) 2023-02-13 11:06:25 +08:00
Benny Prijono de64969899
Incorrect pjlib-test on GitHub CI (#3374)
* Fix pjlib-test not returning error on error

* Add --ci-mode in pjlib-test and pjlib-test-ci Makefile target

* Better sleep_duration_test(): more lenient under --ci-mode and stricter under normal mode
2023-02-10 17:22:11 +07:00
Riza Sulistyo 5d693f87dc
Fix error when adding buddy (#3371) 2023-02-07 17:41:02 +07:00
Kexin Li 8319a6d12b
[Issue 3367 fix] Sipecho updates pj status properly when responding to invalid incoming message with status 400 (#3369) 2023-02-07 17:38:00 +07:00
sauwming 35924fbc2d
Handle invalid SDP when call is in early state (#3359) 2023-02-07 09:37:29 +08:00
Riza Sulistyo 55283c1d4d
Change swigwin binary source to avoid failing to download (#3361) 2023-02-03 16:27:10 +08:00
sauwming 99b1dd8ea9
Fixed crash if jb max size equals frame ptime (#3351) 2023-02-03 16:26:37 +08:00
sauwming f484d296e5
Remove assertion when even package exists (#3352) 2023-02-03 16:26:10 +08:00
sauwming e84fdea2eb
Fix mingw build due to usage of strtok_r (#3353) 2023-02-03 16:25:36 +08:00
sauwming 96e6700c80
Fixed log formatting when printing RTP timestamp (#3354) 2023-02-03 16:25:15 +08:00
sauwming 4095686a52
Update account config's contact_rewrite doc (#3356) 2023-02-03 16:24:52 +08:00
sauwming 7d1803309b
Optimize memory usage for SRTP ROC checking functionality (#3349) 2023-02-03 16:24:27 +08:00
sauwming ada03e93cc
Fixed cli_get_info() definition (#3355) 2023-02-03 16:23:08 +08:00
Florian Xaver 6ca45bd192
Fix string DISCONNCTD (#3357) 2023-02-03 11:05:39 +08:00
Nanang Izzuddin 58f2d943dd
Hangup not yet confirmed outgoing calls in IP change (#3344) 2023-02-01 13:47:15 +08:00
johado 57b3943b6f
Fix compilation problem due to pthread_setspecific (#3068) (#3071) 2023-01-31 15:53:29 +08:00
Florian b75e803e2e
build python wheels via makefile (#3225) 2023-01-31 13:59:50 +08:00
Alexey Vasilyev 930d80e5fc
Added PRACK SDP offer processing (#2995) 2023-01-30 13:42:58 +08:00
Florian Xaver 4d233ecbba
Fix SIP-module documentation regarding return values (#3343) 2023-01-30 11:45:02 +08:00
jimying 3b6cd7454d
streamutil: support opus custom settings (payload type, clockrate, channel) (#3300) 2023-01-30 10:11:05 +08:00
Riza Sulistyo 4ef2df5107
Update windows third party libs (#3341) 2023-01-28 09:33:56 +07:00
Nanang Izzuddin e3d8ed65cd
Add NV12 converter (to I420) in Android video device (#3338) 2023-01-27 11:43:16 +07:00
mscdex fbb385d029
Add ability to retrieve ioqueue OS handle (#3279) 2023-01-27 11:25:53 +07:00
Florian Xaver cfb1d466e0
Extend algorithm to find account for incoming calls in PJSUA(2) (#3336) 2023-01-27 11:24:34 +07:00
Benny Prijono b9c19ac24c
Add RTD badge to README 2023-01-26 17:21:54 +07:00
sauwming e3ffa8960e
Update README.md 2023-01-26 07:33:10 +08:00
sauwming 662965f2f7
Separate CI per platform (#3339) 2023-01-25 19:12:10 +08:00
Benny Prijono 4e75f68520
Update README.md
Update paragraph about PJSIP to include high level languange binding
2023-01-22 14:38:48 +07:00
Benny Prijono 10bf4ea60a
New README.md and root directory clean up (#3337)
* New README.md
* Deleted legacy files from root directory
2023-01-22 09:36:53 +07:00
Nanang Izzuddin 58bfd3dd58
TLS uses remote IP address instead of hostname when sending BYE (#3310) 2023-01-21 14:04:38 +07:00
Nanang Izzuddin d3f79e7a5b
Fix bug in video conference in disconnecting ports (#3325) 2023-01-21 13:44:19 +07:00
sauwming 0d3be5a417
Allow transport other than TLS to be used for SIPS scheme (#3332) 2023-01-19 10:24:23 +08:00
Florian Xaver 67070c5e46
Support different From URI in outgoing calls (#3320) 2023-01-18 17:09:56 +08:00
Ryo ONODERA 7e974cd929
Improve POSIX shell portability (#3326) 2023-01-10 14:34:16 +08:00
Riza Sulistyo 5825f01e02
Increment origin version when there's a change in local SDP answer (#3322) 2023-01-06 13:23:47 +08:00
sauwming c43af43627
Fixed race condition in DTLS media transport (#3321) 2022-12-28 09:48:02 +08:00
sauwming bc4812d31a
Merge pull request from GHSA-cxwq-5g9x-x7fr
* Fixed heap buffer overflow when parsing STUN errcode attribute

* Also fixed uint parsing
2022-12-23 15:05:28 +08:00
Nanang Izzuddin 087832fd1a
Fix undefined-shift in STUN message check (#3313) 2022-12-22 13:55:05 +08:00
sauwming 2cf5432fdb
Suppress use-of-uninitialized-value warning when comparing SIP parser handler (#3316) 2022-12-20 20:28:53 +08:00
sauwming 214d6bc7d4
Fixed possible integer overflow in pj_strtol (#3315) 2022-12-20 18:00:54 +08:00
sauwming b4e9e3937c
Fixed assertion when adding too many SDP attributes (#3314) 2022-12-20 17:07:58 +08:00
jimying 27aa80f751
conference bridge: No need reset a port's mix buffer when the port is't enable (#3318) 2022-12-20 15:53:33 +08:00
jimying b511cc7012
Fix log print missing a space (#3317) 2022-12-20 15:52:54 +08:00
jimying f3ed61e6da
conference bridge: wirte_port() the if condition has mistake which make PJMEDIA_PORT_MUTE case never run (#3311) 2022-12-20 12:48:29 +08:00
jimying d56d2ff50b
Loop transport: add new setting item (max_attach_cnt) to set the max number of attachments (#3309) 2022-12-20 12:46:28 +08:00
Nanang Izzuddin d8440f4d71
Merge pull request from GHSA-9pfh-r8x4-w26w
* Fix buffer overread in STUN message decoder

* Updates based on comments
2022-12-20 12:39:12 +08:00
sauwming 950081c737
Fix indefinite wait when trying to stop pjmedia_clock (#3304) 2022-12-08 17:22:06 +08:00
sauwming eca0ae23de
Fixed encoding video issue with odd resolution (#3301) 2022-12-08 17:21:40 +08:00
jimying 2ea61b881b
Minor modify in g711 codec: typo and reset last_tx (#3302) 2022-12-06 12:22:05 +08:00
Arjun f5580e3faf
Fuzzing Support for oss-fuzz (#3297) 2022-12-01 10:36:26 +08:00
sauwming 52f7c28622 Changed version to 2.13-dev 2022-11-24 16:10:50 +08:00
sauwming 43c745789d Changed version to 2.13 (2)-change PJ_VERSION_NUM_EXTRA 2022-11-24 13:24:24 +08:00
sauwming f25c7457cb Changed version to 2.13 2022-11-24 13:21:13 +08:00
sauwming 6e0f8e469c Disable editorconfig trailing whitespace trimming 2022-11-24 13:20:21 +08:00
Nanang Izzuddin bff4a3f4df
Fix problem in detecting Android STL shared library on msys (#3294)
* Fix problem in detecting Android STL shared library on msys
* Fix build warning when 'ar' creating static lib
2022-11-24 11:35:34 +07:00
Riza Sulistyo a415e2ef9d
Add .git-blame-ignore-revs for #3292 (#3293) 2022-11-23 11:51:51 +07:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Nanang Izzuddin d00fc12807
Miscellaneous fixes (#3280)
* Suppress compile warnings
* Disable ioqueue stress test on VS2005 due to compile errors on structure data initialization (using C99 way, while VS2005 does not seem to support it).
2022-11-22 11:22:31 +08:00
Riza Sulistyo b7aff72764
Use environment LDFLAGS when building with resample as shared lib (#3290) 2022-11-22 11:21:55 +08:00
sauwming caf9471769
Ignore closing transport when acquiring SIP UDP transport (#3286) 2022-11-08 15:28:53 +08:00
Alexey Vasilyev 4c81caa411
Don't terminate call on failed SDP negotiation during EARLY state (#3137) 2022-11-07 11:09:14 +08:00
Nanang Izzuddin f0be616769
Fix false error 'Invalid RTP packet length (PJMEDIA_RTP_EINLEN)' when decoding empty RTP. (#3283) 2022-11-07 09:49:49 +07:00
Nanang Izzuddin c95d2962f3
Fix random fail in UDP sock replace on iOS due to uninitialized status (#3284) 2022-11-07 09:48:36 +07:00
Nanang Izzuddin 3bf821c1af
Fix IP change returning false error (PJSIP_ESESSIONTERMINATED) when there is no call (#3285) 2022-11-07 09:48:14 +07:00
sauwming 43c8343c3d
Fixed video unhold failure when using SRTP (#3282) 2022-11-04 20:52:02 +08:00
sauwming 1128f9dc18
Fixed repeated identical OpenSSL error (#3281) 2022-11-04 19:38:27 +08:00
sauwming 85cb6660fa Misc (re #3087): Suppress deprecation warning in iOS pjsua sample app 2022-11-01 12:15:29 +08:00
sauwming 40a06fba2c Misc (re #3087): Update iOS sample app projects and fix build warnings 2022-11-01 12:02:49 +08:00
sauwming 0610327775 Misc (re #3087): Fixed build warning on iOS (sprintf deprecated) 2022-11-01 11:21:29 +08:00
sauwming ae580f351f Misc (re #3087): Suppressed build warning on Mac 2022-11-01 11:01:45 +08:00
Riza Sulistyo 74569f926a
Fix build warning and error for UWP (#3276)
* Fix build warning and error for UWP

* Include in6_addr.h directly on UWP
2022-10-27 10:47:21 +07:00
sauwming 31874008d1
Prevent integer underflow of sip regc's next registration time (#3274) 2022-10-24 11:15:01 +08:00
jimying 0b0488f17b
Add --disable-libuuid to autoconf (#3100) 2022-10-19 10:56:30 +07:00
jimying 6f2ea3aec3
Remove valgrind warning for pjnath (points to uninitialised byte) (#3052) 2022-10-19 10:51:52 +07:00
Riza Sulistyo 41c24942f1
Fix crash after updating contact (#3102) 2022-10-19 10:46:43 +07:00
Sébastien Blin 35b00d53ce
ice_session: fix crash if all ipv6 addresses are deprecated (#3109) 2022-10-19 10:46:28 +07:00
Riza Sulistyo 3c14c31790 Update windows openssl download link 2022-10-19 10:22:50 +07:00
Riza Sulistyo 37cc6e88a7
Return error when it fails to create stream using opensl (#3182) 2022-10-19 10:16:53 +08:00
Nanang Izzuddin c12693f3d9
Option to use SIP UPDATE for refreshing calls in IP change (#3146)
* Option to use SIP UPDATE for refreshing calls in IP change

* Updated docs

* Add AccountIpChangeConfig.reinvUseUpdate in PJSUA2

* Add logs for debugging and display menu 'I' for IP change in pjsua app (the IP change action was already there just hidden).
2022-10-19 09:12:59 +07:00
orbea c804b31f85
Fix build fail on alpine linux (with musl libc) : no execinfo.h (#3263)
The execinfo.h header is GNU specific and is not available with musl.

Gentoo Issue: https://bugs.gentoo.org/867343

Co-authored-by: jimying <yingqw.js@gmail.com>
2022-10-17 13:32:23 +08:00
SebaLedesma 6f311ab873
Doc fixes of the default value of Media Quality (#3241) 2022-10-17 11:50:23 +08:00
lukas-nowak 304f8dc48f
conditional compilation removed from macro expansion to satisfy MSVC (#3264) 2022-10-14 09:54:40 +08:00
Nanang Izzuddin 15633c4ba2
Skip building SWIG-CSharp projects in VS14 solution (#3266) 2022-10-12 14:25:46 +07:00
Nanang Izzuddin d98f3c3036
Add PJSUA_LOCK_CODEC_DONT_USE_UPDATE for forcing lock codec to always use INVITE method. (#3230) 2022-10-12 09:45:24 +07:00
Riza Sulistyo 505b027920
Update media state when SDP contain "a=inactive" attribute (#3237)
* Don't set media state to active when SDP contains "a=inactive" attribute

* Implement alternative 2

* Handle release hold using PJSUA_CALL_SET_MEDIA_DIR

* Revert "Handle release hold using PJSUA_CALL_SET_MEDIA_DIR"

This reverts commit 63b4d43ec7.

* Revert "Implement alternative 2"

This reverts commit 08fbd7dd32.

* Implement suggestion

* Implement changes in #1899 for video
2022-10-06 15:38:33 +07:00
Riza Sulistyo d2acb9af4e
Merge pull request from GHSA-wx5m-cj97-4wwg 2022-10-06 14:55:13 +08:00
sauwming c4d34984ec
Merge pull request from GHSA-fq45-m3f7-3mhj
* Initial patch

* Use 'pj_scan_is_eof(scanner)'

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Use 'pj_scan_is_eof(scanner)'

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Use 'pj_scan_is_eof(scanner)'

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Use `!pj_scan_is_eof` instead of manually checking `scanner->curptr < scanner->end`

Co-authored-by: Maksim Mukosey <mmukosey@gmail.com>

* Update pjlib-util/src/pjlib-util/scanner.c

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Update pjlib-util/src/pjlib-util/scanner.c

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Update pjlib-util/src/pjlib-util/scanner.c

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Revert '>=' back to '>' in pj_scan_stricmp_alnum()

* Fix error compiles.

Co-authored-by: Nanang Izzuddin <nanang@teluu.com>
Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>
Co-authored-by: Maksim Mukosey <mmukosey@gmail.com>
2022-10-03 08:07:22 +08:00
Nanang Izzuddin e948f48e2e
Fix compile error due to variable not in beginning of block (C89 compatibility). (#3257) 2022-09-30 16:45:30 +07:00
Gregor Jasny a5320984a7
Add additional H.264 levels (#3053) 2022-09-29 10:15:59 +07:00
lukas-nowak 79421add77
Find closest camera format when resolution is presented more than once (#3062) 2022-09-29 10:10:25 +07:00
jimying b0a0fc785e
Fix ioqueue_kqueue: error convert milliseconds to nanoseconds (#3206) 2022-09-29 09:53:23 +07:00
liviu-rolo 947cd77fc4
Update endpoint.cpp (#3163) 2022-09-29 09:15:09 +08:00
Riza Sulistyo 97d38dc989
Support ffmpeg 5.1 (#3242) 2022-09-29 09:10:32 +08:00
Nanang Izzuddin 1840604af5
Add two VS2015 projects for CSharp: SWIG binding builder & sample app (#3217) 2022-09-29 09:08:23 +08:00
Andreas Wehrmann 6bdcad8baf
SRTP transport: don't shadow local status variable (#3169) 2022-09-29 09:07:33 +08:00
Riza Sulistyo 3956663a6b
Update symbols due to #2722 (#3075) 2022-09-29 09:05:11 +08:00
sauwming 06dc90eaf9
Fixed assertion in Apple SSL when verification is retried (#3034) 2022-09-29 09:02:15 +08:00
sauwming 1c3f63e502
Set SRTP context to NULL after deallocation (#3097) 2022-09-29 08:59:20 +08:00
sauwming dbbeb06ed5
Add OpenSSL version check for SSL_SESSION_is_resumable() (#3120) 2022-09-29 08:58:46 +08:00
liviu-rolo b21000ec65
typos (#3118) 2022-09-29 08:58:22 +08:00
BeardedSkunk 5b0f9c8c6f
fix missing init of tp_type in initialize_acc() (#3258)
With changing accounts, memory of obsolete account gets re-used for
 new one, be sure tp_type does not keep random type of whatever
 account-setup was using the memory beforehand.
2022-09-28 14:51:22 +07:00
sauwming 875f76aa3e
Fix darwin_dev build failure on Mac (#3174) 2022-09-28 10:19:04 +08:00
Andreas Wehrmann 0fb32cd4c0
free SSL context and reset context pointer when setting the cipher list fails; this is a followup of issue #3069 (#3245) 2022-09-27 15:09:03 +07:00
Andreas Wehrmann 6f80f645d9
Windows: add FILE_SHARE_DELETE flag when opening/creating files to allow for interacting with temporary files (#3246) 2022-09-27 15:08:32 +07:00
Nanang Izzuddin eafce473c6
Remove unused files from webrtc_aec3 Makefile (#3249) 2022-09-27 15:04:09 +07:00
Martin Flaska 00f2f4000c
pjsua2: Endpoint: Make transportGetInfo and transportEnum methods const (#3250) 2022-09-27 15:02:55 +07:00
Nanang Izzuddin edb884c713
Change PJ_ACTIVESOCK_TCP_IPHONE_OS_BG default to 0, because app gets killed on iOS 16 when using VoIP socket. (#3253) 2022-09-27 15:01:22 +07:00
jimying e4a8d0ad9c
Fix possible deadlock in TURN session (not release lock) (#3256) 2022-09-27 14:21:05 +07:00
sauwming 0af29caf6d
Make sure that epoll sleep is done only if the delay is positive (#3233) 2022-09-23 14:55:53 +08:00
sauwming 9426572a1c
Fixed memory leak in OpenSSL when getting certificate chain (#3235) 2022-09-23 14:55:02 +08:00
Nanang Izzuddin b9a9477913
Update docs of PJMEDIA_CODEC_MAX_SILENCE_PERIOD, more codecs with internal VAD mechanism have been added. (#3251) 2022-09-22 14:02:16 +07:00
Jaco Kroon bae7e5f4ff
aconfigure: fix bashism. (#3220)
${var//string/replacement} is considered a bashism and should be avoided in configure scripts.
2022-09-20 10:15:38 +07:00
sauwming 1cda935380
Only include upnpdebug.h if logging is enabled (#3213) 2022-09-19 17:37:09 +07:00
Nanang Izzuddin 6929550e08
Add logs for RTP/RTCP socket binding error in PJSUA (#3208) 2022-09-19 17:18:44 +07:00
Riza Sulistyo e5c425d570
Fix ASAN error when app_init() failed (#3224) 2022-09-19 17:09:02 +07:00
Andreas Wehrmann 8e7d630d55
Fix assertion when trying to set QOS of type "signalling" (#3222) 2022-09-19 16:22:16 +07:00
jimying e2b4694119
Fix httpclient type convert error (#3231) 2022-09-19 13:18:16 +07:00
Riza Sulistyo 797088ed13
Fix port_range/portRange documentation (#3221)
* Fix port_range/portRange doc

* Modify doc text
2022-08-23 15:12:52 +07:00
sauwming 4f280161f1
Fix potential buffer overrun when printing SIP header/message (#3175) 2022-08-10 12:59:38 +08:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
jimying 6c8f39c3bb
Fix PJ_PERROR(): the second arg is error (#3204) 2022-08-08 18:00:12 +07:00
jimying de56dda311
Add new api pj_sock_socketpair() (#3179)
* Add new api pj_sock_socketpair()
2022-08-08 08:36:48 +07:00
Riza Sulistyo d4dc67706b
Add option to use default settings when switching sound device (#3181)
* Add option to use default settings when switching sound device

* Update doc

* Modification based on comments
2022-08-05 14:49:31 +07:00
Riza Sulistyo 86b6711777
Fix configure error on android NDK r25 (#3200)
* Fix configure error on android NDK r25

* Pass libc++_shared.so path to Makefile (java/csharp)

* Only pass the STD Cpp lib and env var rename
2022-08-05 14:49:15 +07:00
sauwming 122a2ce343
Fix SWIG C# build script to consider OS other than iOS and Android (#3199) 2022-08-04 11:43:17 +08:00
sauwming 8861441ec8
Move UPnP to PJNATH (#3195) 2022-07-29 17:05:28 +08:00
sauwming e0b15546df Misc (re #3087): Fixed incorrect doc param name 2022-07-28 10:14:15 +08:00
sauwming 12f854135a
Update third party media sample implementation (#3193) 2022-07-28 09:53:17 +08:00
Nanang Izzuddin e4bc56031a
Fix multicast problem on Windows due to 'bad' defined SOL_IP in recent Windows build toolset (v143). (#3190) 2022-07-27 12:05:18 +07:00
Benny Prijono 5604238bf5
EPOLLIN bug, epoll ioqueue refactoring and other bug fixes/enhancements to ioqueue (#3188)
* Minor: fixed warning about unused static function when the test is disabled

* Part of #3188: Add support for pj_ioqueue_create2(), ioqueue_add_to_set2(), ioqueue_remove_from_set2()

* #3188: fixing epoll ioqueue EPOLLIN problem, added pj_ioqueue_create2(), ioqueue_add_to_set2(), and ioqueue_remove_from_set2() functions, and added more unit tests

* Continuing #3188: porting t oWindows/Visual Studio

* More #3188: minor fixes

* More #3188: minor fix on Windows to remove runtime warnings

* More #3188: clearer documentation comments

* More #3188: do not check for EXCLUSIVE support if disable_exclusive is set, and added clarification about EPOLLERR flags removal

* More #3188: clarification about unregistration test in ioq_udp.c
2022-07-27 10:38:02 +07:00
sauwming 12aa75e317
Add ability in stream to modify Opus codec parameters on the fly (#3189) 2022-07-26 15:06:24 +08:00
Nanang Izzuddin 6ff18b4f8a
Lock ordering issue in video conference bridge (#3183) 2022-07-21 15:10:54 +07:00
sauwming 82247cb8c0
Add UPnP support for SIP UDP and media UDP transports (#3184) 2022-07-21 11:25:05 +08:00
Benny Prijono 575e6cf2ca
Merge pull request #3187 from bennylp/master
Bug fixes and enhancements in pjlib ioq_perf.c
2022-07-20 09:27:03 +07:00
Benny Prijono 70ecdb584e
Merge branch 'pjsip:master' into master 2022-07-18 09:59:48 +08:00
bennylp 24201b0983 Add pj_log_set/get_indent() API to allow threads to synchronize log indentation 2022-07-18 08:58:09 +07:00
bennylp 3ade7c9215 Bug fixes and enhancements in pjlib ioq_perf. Bug fixes:
1. stopping condition that is too small and bug in duration calculation causing the test to complete very quickly (in about 1ms). This would cause bandwidth calculation to be inaccurate because threads haven't had chance to run properly yet.
2. bug in total_received calculation causing wrong bandwidth calculation (it only shows bandwidth of the last socket pair).

Enhancements:
1. show statistics of each worker thread to see if threads are woken up equally.
2. show statistics of each socket pair to see if they have fair share of the bandwidth.
2022-07-08 18:57:08 +07:00
Andreas Wehrmann e10e2075f5
prevent buffer overflow: The Unicode variant expects the number of characters that can be put in the buffer supplied by the user and not the size in bytes. (#3170) 2022-07-08 16:16:27 +08:00
Riza Sulistyo 0d7157c167
Support OpenSSL3 (#3168)
* Support OpenSSL3

* Modify code order
2022-07-08 09:25:38 +07:00
sauwming 72311468f2
Perform async rendering in the main thread on Mac & iOS (#3166) 2022-07-07 14:56:56 +08:00
jimying b9db6ac058
Fix epoll-oneshot may cause crash (#3158) 2022-07-06 09:19:31 +08:00
jimying cbc2051d7b
Set thread display name (#3156) 2022-07-06 09:15:58 +08:00
Nanang Izzuddin 80d3385b69
Update VAD docs/help (#3165)
Update VAD docs/help, some codecs (e.g: Opus & SILK) have VAD disabled by default.
2022-07-05 09:40:47 +07:00
Nanang Izzuddin 563a7bfcfd
Fix assertion due to bad rtpmap attribute generated by pjmedia_endpt_create_audio_sdp(). (#3167) 2022-07-05 09:29:22 +07:00
jimying fc3763d074
Run-time detect epoll exclusive/oneshot support (#3151) 2022-07-05 08:53:15 +08:00
Nanang Izzuddin d5fc07cc03
Random crash due to invoking SRTP APIs on custom media transport instance (#3145) 2022-06-20 12:26:59 +08:00
Nanang Izzuddin db39b275f6
Update SWIG symbols.i for WebRTC AEC3 (#3148) 2022-06-20 12:15:48 +08:00
sauwming 772d690613
Add option to check if UPDATE sent during EARLY inv state has completed SDP nego using reliable prov response (#3138) 2022-06-10 07:24:02 +08:00
sauwming c4ee4db426
Add API pjsip_evsub_get_expires() (#3139) 2022-06-09 11:35:45 +08:00
sauwming 450baca94f
Merge pull request from GHSA-26j7-ww69-c4qj 2022-06-07 12:00:13 +08:00
sauwming 0cdd34c1e0
Patch to improve epoll implementation (#3121) 2022-06-06 11:41:35 +08:00
sauwming b04abebc33
Fixed issues with event subscription regarding on_rx_refresh() and unsubscription (#3126) 2022-06-06 11:40:41 +08:00
Nanang Izzuddin 85f7a694a8
Allow screensaver when using SDL 2.0.2 (#3111) 2022-05-20 11:43:19 +07:00
Nanang Izzuddin d671704abe
Add run time settings to enable/disable RTCP-XR in account config (#3110) 2022-05-20 11:42:55 +07:00
Riza Sulistyo c3d260dc33
Prevent assertion when codec enc wide size is larger than height size (#3044) 2022-05-09 14:48:36 +07:00
Nanang Izzuddin ad39e53ad2
Fix AVI player: compile warning and unchecked file_read() return value (#3092) 2022-05-09 09:31:27 +07:00
Bastian Triller 3c2d4b3ae2
fix typos (#3096) 2022-05-05 13:46:43 +08:00
Riza Sulistyo fa7087461e
Don't schedule re-Registration on IP change case (#3027) 2022-05-04 09:34:36 +08:00
sauwming fe6cbbc397
Add configure option to disable srtp (#3002) 2022-05-04 09:33:28 +08:00
sauwming 7231318c9c
Fixed build failure in Xamarin C# project (#3032) 2022-05-04 09:32:55 +08:00
sauwming 0297a3bf57
Add account id parameter checking in pjsua im APIs (#3035) 2022-05-04 09:32:36 +08:00
sauwming f1c0e284a3
Added conference port id checking in pjsua (#3038) 2022-05-04 09:15:34 +08:00
Riza Sulistyo 8e196d82b7
Add checks when parsing RTCP FB (#3055) 2022-05-04 09:15:03 +08:00
Riza Sulistyo 0fd9cb0d0f
Fix missing argument due to changes on #2979 (#3076) 2022-05-04 09:14:30 +08:00
Davy Durham 156950f32a
honoring __aarch64__ (clang's macro) as being equivalent to _M_ARM64 (MSVC's macro) to properly detect arm64 when compiling under clang (not using autoconf). This is necessary for multiarch builds. (#3017) 2022-05-04 09:13:45 +08:00
liviu-rolo 7a7c17d364
wrong documentation about default jbInit (#3006) 2022-05-04 09:13:02 +08:00
liviu-rolo 712225bd48
Wrong default values for JB prefetch (#3007) 2022-05-04 09:12:40 +08:00
Nanang Izzuddin a575041ac3
Fix warnings related to <pj/limits.h> (#3089) 2022-04-29 14:45:10 +07:00
Nanang Izzuddin e9346c5071
Update media event poll timeout (#3086) 2022-04-27 18:36:19 +07:00
Riza Sulistyo ed46d2eaca
Always re-arm ioqueue for events on pj_ioqueue_poll() (#3018) 2022-04-27 10:10:23 +07:00
Nanang Izzuddin 41023dad10
Some callbacks not invoked in call replace in PJSUA2 (#3059)
Warning: potential backward incompatibility issue, previously the replacing call can use any account (selected using pjsua_acc_find_for_incoming() and app may override via callback), now it is forced to use the same account.
2022-04-26 13:30:41 +07:00
Riza Sulistyo 6713e02036
Handle crash when converting std::string with non UTF-8 character on Android (#3065)
* Handle crash when converting std::string with non UTF-8 character on Android

* Add convert Java String to std::string
2022-04-26 10:29:07 +07:00
Riza Sulistyo 947bc1ee6d
Merge pull request from GHSA-rwgw-vwxg-q799
* Prevent potential infinite loop when parsing WAV format file

* Check if subchunk is negative.

* Fix and add checks

* Change data type from pj_ssize_t to long.

* Modify check

* Fix leak file descriptor and modify check on wav_playlist

* Move overflow/underflow check to pj_file_setpos()

* Use macro to simplify check

* modification based on comments

* Remove unnecessary casting

* Modification based on comments
2022-04-25 12:54:19 +08:00
Riza Sulistyo d2006a43bb
Fail sending periodic RTP transmission on silence (#3080) 2022-04-25 11:44:01 +08:00
johado 863629bc65
Fix double free of ossock->ossl_ctx in case of errors (#3069) (#3070) 2022-04-18 12:08:33 +08:00
Sean d653375c60
Android - Create new ImageReader instance before opening camera (#3063) 2022-04-14 18:49:08 +08:00
jimying 22f4d0e78f
add kqueue support for macos/BSD (#3029) 2022-04-11 12:32:43 +08:00
jimying 5921342c0d
Fix thread attributes memory leak when create thread (FreeBSD) (#3031) 2022-04-11 12:30:42 +08:00
Nanang Izzuddin b9f52784a3
Fix tonegen plays twice faster in stereo mode. (#3056) 2022-04-07 14:26:33 +07:00
sauwming 189e6c0330 Fix bug when hanging up call (#3026) 2022-04-06 17:21:12 +08:00
Nanang Izzuddin 9d8a6efc91
Crash due to stop & restart race conditions in Oboe (#3046) 2022-04-06 11:39:03 +07:00
Riza Sulistyo 9fae8f43ac
Merge pull request from GHSA-p6g5-v97c-w5q4
* Prevent heap buffer overflow when parsing DNS packets

* Make sure packet parsing doesn't advance beyond max/end

* Update checks

* Remove  check

Co-authored-by: sauwming <ming@teluu.com>
2022-04-06 11:49:47 +08:00
Riza Sulistyo 11559e49e6
Merge pull request from GHSA-vhxv-phmx-g52q
* Prevent OOB read/write when parsing RTCP FB RPSI

* Add log information

* Modification based on comments.
2022-04-06 11:40:09 +08:00
Riza Sulistyo 856f87c2e9
Merge pull request from GHSA-5x45-qp78-g4p4
* Prevent infinite loop in scanning xml content

* Simplify scanning method

* Optimization
2022-03-29 14:59:03 +08:00
sauwming 38c13afa1c
Fixed missing field in CodecParam (#3037) 2022-03-25 17:30:46 +08:00
Marcus Froeschl 30ca7186db
Fix compiler warning C4819 (Unicode character in ANSI file) (#3022) 2022-03-25 17:30:10 +08:00
mscdex 4d422dbf17
Only generate call stats if logging is enabled (#3020) 2022-03-25 09:16:42 +08:00
Emre TUFEKCI 2fd5e76d8e
third party media build error fix (#3019) 2022-03-25 09:14:37 +08:00
liviu-rolo 516c69ab87
minor output changes: keystroke_help (#3011) 2022-03-25 09:14:15 +08:00
Riza Sulistyo 8e95490e37
Add compile time option to allow multiple Authorization header (#3010) 2022-03-24 13:53:03 +08:00
sauwming a3f08177c4
Set Oboe usage to voice communication (#3033) 2022-03-24 10:37:53 +08:00
Nanang Izzuddin 560a1346f8
Merge pull request from GHSA-f5qg-pqcg-765m 2022-03-22 16:30:47 +08:00
sauwming 601f0c7af1
Update registration transport upon account's modification or transport setting (#3004) 2022-03-11 14:29:42 +08:00
Riza Sulistyo d27f79da11
Use PJ_ASSERT_RETURN() on pjsip_auth_create_digest() and pjsua_init_tpselector() (#3009)
* Use PJ_ASSERT_RETURN on pjsip_auth_create_digest

* Use PJ_ASSERT_RETURN on pjsua_init_tpselector()

* Fix incorrect check.

* Add return value to pjsip_auth_create_digest() and pjsip_auth_create_digestSHA256()

* Modification based on comments.
2022-03-08 22:20:39 +07:00
Riza Sulistyo 94886d72d5
Deprecate PJ_ENABLE_EXTRA_CHECK macro (#3008)
* Deprecate PJ_ENABLE_EXTRA_CHECK macro

* Modification based on comments
2022-03-08 10:27:46 +07:00
liviu-rolo 5102096ab1
wrong default value for jitter buffer max (#3001) 2022-03-03 12:44:43 +08:00
sauwming 18281d8a7d
Add option to randomize RTP starting port (#3000) 2022-03-03 12:43:44 +08:00
liviu-rolo 4a8cf9f3fc
"--version" command line option does not work (#3003) 2022-03-03 12:43:14 +08:00
nanangizz 4a5b55b6a2 Changed version to 2.12-dev 2022-02-24 16:16:49 +07:00
nanangizz 99660f6add Changed version to 2.12 2022-02-24 14:54:38 +07:00
sauwming 6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
Nanang Izzuddin 062204bd5d
Fix cseq generation in pjsip_dlg_create_request(). (#2996) 2022-02-24 13:17:06 +07:00
sauwming c4531e0ddc
Hangup call in crossover scenario between CANCEL and 200 response (#2994) 2022-02-23 12:39:45 +08:00
sauwming 088690b607
Fixed failed pjsua test due to incorrect SRTP ROC check (#2993) 2022-02-23 12:10:44 +08:00
Riza Sulistyo 88b91260ad
Handle padding included on image from Camera2 API (#2991) 2022-02-22 11:47:09 +08:00
Riza Sulistyo 0ac02c2c8d
Prevent memory leak on OpenH264 due to multiple decoder allocation (#2987) 2022-02-22 11:41:07 +08:00
sauwming b5af6819a0
Fixed failure to resume video when unholding the call (#2988) 2022-02-22 11:40:10 +08:00
sauwming 87a63f1725
Reenable periodic RTP transmission on silence (#2989) 2022-02-22 11:39:10 +08:00
Nanang Izzuddin db3235953b
Merge pull request from GHSA-ffff-m5fm-qm62
* Update pjsip_ua_unregister_dlg():
- update the hash key if the dialog being unregistered is used as hash key.
- add an assertion check to make sure that the dlg_set to be removed is valid (can be found in the hash table).

* Change hash key string comparison method.
2022-02-21 07:24:52 +08:00
sauwming 9b37e587bc
Add feature to init SRTP ROC and check if SRTP ROC needs to be reset/maintained (#2846) 2022-02-18 10:06:29 +08:00
sauwming 3c2219e4d3
Fixed Android build issues on NDK r23 and r24 (#2974) 2022-02-16 11:38:44 +08:00
sauwming b1d29fd4e7
Fixed call hangup crash when ending session fails (#2980) 2022-02-16 11:27:35 +08:00
sauwming e79d28e665
Fixed iOS ipjsua app inability to auto answer (#2975) 2022-02-15 19:28:30 +08:00
Tobias Schlager d2387d0121
Avoid assertions when using PJ_HAS_THREADS 0 (#2958) 2022-02-15 17:10:10 +08:00
Riza Sulistyo d5477c1eed
Release wav player and recorder pool to clean up when calling pjsua_destroy() (#2979)
* Release wav player and recorder pool on pjsua_destroy2()

* Modification based on comments

* Modification based on comments

* modification based on comments
2022-02-15 13:21:38 +07:00
Florian Xaver 4cc86a6a3c
Fix documentation and usage of txdata ref counter (#2957) 2022-02-15 13:53:47 +08:00
sauwming 691c687f66
Fixed assertion in multipart test (#2972) 2022-02-15 11:19:13 +08:00
Riza Sulistyo 835d4073d7
Fix decode issue on FFMpeg 4.3.2 (#2976) 2022-02-15 10:56:01 +08:00
sauwming c9715f4ffc
Modified default C++ compiler for configure-iphone (#2977) 2022-02-15 10:55:12 +08:00
sauwming eda6fb5894
Fixed build failure for libwebrtc-aec3 (#2978) 2022-02-15 10:51:12 +08:00
Grazhdan Oleg 14b0ef44df
Fix incorrect pjmedia_sdp_neg_state in case of SDP parsing error (#2908) 2022-02-14 17:27:11 +08:00
Krzysztof Marciniak f5249ca70e
Added pjsip_tsx_set_timers to change timers at runtime (#2781)
* Added pjsip_tsx_set_timers to change timers at runtime

Added new function pjsip_tsx_set_timers in sip_transaction.c
which allows to change session timers during runtime.
It also allows to change timer values independently,
currently all timers are set at various ratios from
t1 during init. This was required for server which could
change timeout configuration on runtime, but could be
usable in other projects.

* Add synchronization of timer values in pjsip_cfg().

Add synchronization of timer values to pjsip_cfg() and another
function to (re)synchronize timer values from pjsip_cfg(),
`pjsip_tsx_initialize_timer_values()`.

`pjsip_tsx_set_timers` now accepts zeroed arguments to mean
that it should not change that timer value.
2022-02-14 12:49:29 +08:00
George Joseph 668a828631
Add additional unit test options (#2961) 2022-02-11 12:28:03 +08:00
sauwming a5fa35305a
Fixed OpenSSL server context initialization (#2973) 2022-02-11 09:36:49 +08:00
Riza Sulistyo 9ffd718d17
Add support to boringssl (#2856) 2022-02-11 08:32:01 +07:00
Andreas Wehrmann c4bad5df14
do not #define snprintf and vsnprintf on Visual Studio 2015 and newer (#2971) 2022-02-11 09:12:23 +08:00
sauwming c765e75252
Fix Windows CI build to use VS 2022 2022-02-10 16:28:53 +08:00
jimying dc2e5c6546
fix vid_streamutil not working on mac (#2875) 2022-02-10 10:57:57 +08:00
sauwming ddefd578b1
Fixed ice session assertion when there's no checklist (#2955) 2022-02-10 10:57:07 +08:00
sauwming 74c0309d80
Race condition between Apple SSL destroy and event callback (#2825) 2022-02-09 17:02:49 +08:00
sauwming 2caced6fcf
Fix failure to manually reply re-INVITE (#2968) 2022-02-09 14:27:12 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
sauwming 119623b633
Misleading log when answering a call in CONFIRMED state (#2950) 2022-02-08 12:02:37 +08:00
sauwming 5beae3816a
OpenSSL server-side enhancements to support session reuse and SNI (#2954) 2022-02-08 11:54:01 +08:00
Nanang Izzuddin 2d5a37f92e
Replace deprecated Android Camera framework with Camera2 (#2797) 2022-02-08 11:39:27 +08:00
Nanang Izzuddin 6bda5dfb6b
NAT64: handle special case where server put FQDN (which resolved to IPv6 only) in SDP answer. (#2926) 2022-02-08 11:33:51 +08:00
Nanang Izzuddin e0056814a9
Avoid double BYE when pjsua_call_hangup() is called multiple times (#2859) 2022-02-08 11:28:44 +08:00
Nanang Izzuddin c7c4ebc7b0
Add check if module has been unregistered in mod_ua module (in sip_ua_layer.c). (#2840) 2022-02-08 11:28:17 +08:00
Nanang Izzuddin c12d12cab7
Fix deadlock after immediate hangup on video call (#2837) 2022-02-08 11:27:42 +08:00
Riza Sulistyo 4fa7528c9d
Allow registration refresh to continue when REGISTER response contains expires parameter set to 0 (#2809) 2022-02-08 11:24:48 +08:00
Riza Sulistyo 313d536c28
Implement verify callback to TLS connection (#2962) 2022-02-08 11:15:38 +08:00
sauwming d979253c92
Merge pull request from GHSA-qcvw-h34v-c7r9
* Perform buffer length checks

* Add asssertion sanity checks
2022-02-08 08:15:07 +08:00
George Joseph 551273f639
Additional multipart improvements (#2953)
Added the following APIs:
pjsip_multipart_find_part_by_header()
pjsip_multipart_find_part_by_header_str()
pjsip_multipart_find_part_by_cid_str()
pjsip_multipart_find_part_by_cid_uri()
2022-02-02 09:30:14 +07:00
sauwming 077b465c33
Merge pull request from GHSA-7fw8-54cv-r7pm 2022-01-26 13:28:57 +08:00
sauwming 22af44e68a
Merge pull request from GHSA-m66q-q64c-hv36
* Prevent OOB read during RTP/RTCP parsing

* Add log

* Add more logs
2022-01-26 08:03:48 +08:00
sauwming a5e052f2a5
Fix video issues upon format change (#2911) 2022-01-25 08:39:46 +08:00
sauwming f99639fede
Fix aviplay crash when using ffmpeg video codec (#2940) 2022-01-24 11:40:15 +08:00
sauwming c9a75bed34
Add parameter assertion check in pjsip_uri_get_uri() (#2893) 2022-01-19 19:22:06 +08:00
Nanang Izzuddin ecd18ee4d4
Fix issue of not rescheduled keep-alive timer for Flow-Timer when ka_interval (UDP keep-alive interval setting) is zero/disabled. (#2943) 2022-01-18 13:41:57 +08:00
sauwming 986d7fc198
Fix build failure when PJ_POOL_DEBUG is enabled (#2947) 2022-01-18 13:40:50 +08:00
sauwming 3cdea084b2
Check for tdata when ending inv session (#2938) 2022-01-18 13:38:55 +08:00
sauwming 0cdc5e8df0
Initialize pj logging earlier in pj_init() (#2949) 2022-01-18 13:37:47 +08:00
sauwming 88b8981817
End CLI telnet session upon data read error (#2939) 2022-01-18 13:35:31 +08:00
Florian Xaver e84b3318d7
Support Digest AKA authentication in PJSUA2 (#2785) 2022-01-17 10:18:00 +08:00
Florian Xaver ff7cd11630
Support loop media transport in PJSUA2 (#2900) 2022-01-13 13:20:50 +07:00
George Joseph 80c48e9a57
Create generic pjsip_hdr_find functions (#2941) 2022-01-13 13:10:04 +07:00
Riza Sulistyo d3d4d2200c
Support Flow-Timer on rfc5626 (#2921)
* Support Flow-Timer

* randomize keep-alive timer each time it is scheduled.

* Modify random delay calculation.

* Simplify random delay calculation.
2022-01-10 22:31:53 +07:00
sauwming b771df4663
Fix missing event unsubscription in pjsua video (#2932) 2022-01-06 15:39:15 +08:00
Riza Sulistyo 1aa2c0e0fb
Merge pull request from GHSA-8fmx-hqw7-6gmc 2022-01-04 16:58:02 +08:00
sauwming 3faf1d2b4d
Fix incorrect unescaping of tokens during parsing (#2933) 2022-01-04 15:28:49 +08:00
jimying 88b7e0f12e
fix clock thread lock not released (#2874) 2022-01-03 18:08:34 +08:00
ryancaicse bc32549bb3
Fix some resource leaks (#2928) 2021-12-27 10:05:22 +08:00
Nanang Izzuddin adb8340752 Revert "After ICE nego is completed, don't perform triggered check and ignore any completion of outgoing check."
This reverts commit 105ca1675d.
2021-12-24 15:15:42 +07:00
Nanang Izzuddin 105ca1675d After ICE nego is completed, don't perform triggered check and ignore any completion of outgoing check. 2021-12-24 15:05:35 +07:00
Riza Sulistyo f74c1fc22b
Merge pull request from GHSA-r374-qrwv-86hh 2021-12-24 12:17:15 +08:00
sauwming 833c983029
Get note from root if not found in tuple (#2909) 2021-12-23 11:00:33 +08:00
sauwming fc91812dd1
Fix crash when dumping call data during media deinit (#2918) 2021-12-23 10:59:51 +08:00
sauwming 41b7bde0f0
Check for decoding delay in video stream (#2886) 2021-12-23 10:09:48 +08:00
George Joseph 69a89a26dd
sip_inv: Additional multipart support (#2919) (#2920) 2021-12-22 09:32:22 +07:00
George Joseph 57416c5cf8
Fix declaration of pjsip_auth_deinit_parser() (#2914) 2021-12-22 09:27:46 +07:00
sauwming 5c9cc3cea4
Pjsua test fix on multiple authentication header scenario (#2922) 2021-12-22 09:09:21 +08:00
sauwming 8b621f192c
Merge pull request from GHSA-3qx3-cg72-wrh9 2021-12-22 08:49:27 +08:00
Riza Sulistyo cc339ac623
Workflow - update openssl for windows path. 2021-12-17 18:45:14 +07:00
sauwming fbfad9fd22
End CLI session upon connection closure (#2917) 2021-12-15 17:52:28 +08:00
Nanang Izzuddin c6e238d2a3
Avoid memory bloat on ICE restart (#2903) 2021-12-15 09:05:20 +07:00
George Joseph f395420e3f
pjsip-apps: Set initial log level to 1 (#2912)
When pjsua is started or when the python bindings are initialized
tons of debug log messages are emitted before the command line
"log-level" arguments are processed.  This causes quite a bit
of unnecessary log space to be used.  To combat this,
pj_log_set_level(1) is now called before anything else.  The
command line arguments can, of course, still set any level
later on.
2021-12-09 15:44:37 +08:00
0xBiN 7b8ea759e1
Prevent pj_gettickcount() calculation overflow (#2899) 2021-12-07 18:35:58 +08:00
Nanang Izzuddin 7dcf16dca5
Fix issues in updating media dir to "none" in the middle of a call (#2906)
* Fix issues in updating media dir to NONE in the middle of a call

* Update PJSUA2 CallSetting::mediaDir declaration for SWIG. Note: adding SWIG template for MediaDirVector as vector of pjmedia_dir enum causes some error: SWIG treats enum as int, so vector of pjmedia_dir will be wrapped as vector of int, as there is already IntVector, SWIG rejects duplicated vector of int.
2021-12-06 14:38:33 +07:00
Nanang Izzuddin 9784f78dc7
Make keyframe interval configurable in Apple VideoToolbox codecs (#2905) 2021-12-03 10:43:01 +07:00
Riza Sulistyo 073e992767
Add documentation on how port_range is used (#2904)
* Add documentation on how port_range is used.

* Add pjsua2 documentation

* Move example of media transport settings
2021-12-03 07:58:22 +07:00
sauwming 9526a6e56a
Play WAV data even if the data length is truncated (#2892) 2021-11-22 12:16:32 +08:00
Riza Sulistyo ef0ed65808
Disable assertion when checking for an invalid transport (#2891)
* Disable assertion for an invalid transport

* Modification based on comments.
2021-11-19 11:29:26 +07:00
Riza Sulistyo cc680d21e6
Change "md5" algorithm name to uppercase to comply with the standard (#2889) 2021-11-18 13:15:07 +07:00
Nanang Izzuddin ab86ec3dc0
Only add the top most supported auth header in auth reinit request. (#2887) 2021-11-16 15:34:52 +07:00
sauwming 57376c13ac
Add aarch64 check for building libwebrtc and webrtc-aec3 (#2884) 2021-11-16 11:26:41 +08:00
Nanang Izzuddin 532e64ef6e
Disable auto restart socket in PJMEDIA and PJSIP transports (#2881) 2021-11-11 09:25:45 +07:00
Riza Sulistyo c5234d5418
Change interval calculation for sending keep-alive message (#2878)
* Change interval calculation for sending keep alive message

* Fix misstype
2021-11-10 21:28:45 +07:00
Riza Sulistyo 6ca06f63ec
Fix some doc warning (#2879) 2021-11-10 09:57:40 +07:00
jimying 263886b8e0
Add vp8/vp9 support to ffmpeg_vid_codecs (#2863) 2021-11-08 10:01:47 +07:00
jimying de9bdf3dc0
aviplay render window add flags border & resizable (#2868) 2021-10-29 13:47:46 +08:00
ryancaicse 8e799da6cf
Fix a bug destroying an unreleased lock in vid stream (#2865) 2021-10-28 12:25:07 +08:00
Nanang Izzuddin d2f9563008
Add PJMEDIA_VID_STREAM_CHECK_RTP_PT setting (#2854) 2021-10-21 14:56:58 +07:00
Nanang Izzuddin 407009c0a8
Fix bug in REGISTER Contact length calculation (#2857) 2021-10-21 10:22:45 +07:00
Nanang Izzuddin c87056e178
Add call dump to pjsua_media_channel_deinit() (#2855) 2021-10-20 12:45:20 +07:00
ali 4dc183bf37
Fixed wrong path to config_site_sample.h in Readme.txt (#2850) 2021-10-19 15:34:49 +07:00
Nanang Izzuddin 3cf3b04a38
One way audio due to Opus falsely detecting codec ptime change (#2836) 2021-10-19 15:31:03 +07:00
Nanang Izzuddin 6b1821c0c7
Add compile-time setting to disable automatic video device subsystem initialization (#2777) 2021-10-19 15:26:38 +07:00
sauwming 06bf32aa6c
Fix build failure on Mac CI machine due to OpenSSL not found (#2848) 2021-10-13 10:55:06 +08:00
Nanang Izzuddin 11ec771c90
Replace pj_ansi_strchr() with pj_memchr() in pj_scan_skip_line(). (#2839) 2021-10-11 10:35:53 +07:00
Sean 97ddd172e9
Allow macos to share from USB camera (#2793) 2021-10-04 10:59:24 +08:00
Nanang Izzuddin 8fc67a51ee
Miscelaneous changes on PJSUA2 audio device APIs (#2822) 2021-09-27 15:24:59 +07:00
Nanang Izzuddin e48ec1dc0d
Add support to specify Contact URI params specific to REGISTER requests (#2819) 2021-09-23 09:08:07 +07:00
Nanang Izzuddin cb97e86f9f
Add a new ioqueue API pj_ioqueue_clear_key() (#2810) 2021-09-23 08:57:25 +07:00
Florian Xaver 1aa7eb2180
Added new function pjmedia_sdp_media_print(...) (#2799) 2021-09-21 16:15:57 +07:00
George Joseph 87bb60edb2
pjmedia_sdp_attr_get_rtpmap: Strip param trailing whitespace (#2828)
Use pj_scan_get() to parse the param part of rtpmap so
trailing whitespace is automatically stripped.

Fixes #2827
2021-09-15 11:12:05 +08:00
Nanang Izzuddin ae5ce4ca72
Handle unknown cipher name in PJSUA2 (#2821) 2021-09-10 16:45:39 +07:00
jimying 06e28755d4
BSD (freebsd,openbsd,netbsd..) generate uuid use os native api (#2816) 2021-09-10 08:54:38 +07:00
Riza Sulistyo a097ebcdee
When optimization is enabled, local assignment might be lost on exception (#2813) 2021-09-09 10:06:01 +07:00
Nanang Izzuddin 4b11af1d84
When nominating in regular nomination, don't nominate triggered check immediately to avoid concluding a pair with lower priority (see #2812). (#2817) 2021-09-06 15:58:35 +07:00
sauwming 328a6837cc
Resort ICE checklist upon entering nomination stage (#2806) 2021-08-30 11:45:52 +08:00
Riza Sulistyo 661a8cef67
Add support to windows on ARM build (#2807)
* Add support to ARM64 configuration for win32 build

* Add changes notes to webrtc and webrtc_aec3 third party sources

* Remove reference to libwebrtc_aec3 from libpjproject. Add reference it manually if libwebrtc_aec3 is needed.

* Fix build error on Release configuration.
2021-08-30 10:39:48 +07:00
sauwming f448fc21df
Fix socket leak in turn sock (#2805) 2021-08-25 08:46:45 +08:00
sauwming 36e09d3076
Acquire lock before destroying ioqueue epoll (#2804) 2021-08-23 15:38:58 +08:00
Nanang Izzuddin 37136a4ee6
High video latency when decoder frame rate is initialized lower than actually received (#2798)
- Add new APIs to update/refresh video conference bridge port: `pjmedia_vid_conf_update_port(), pjsua_vid_conf_update_port(), VideoMedia::update()`.
- Use the new API in PJSUA-LIB to update renderer & stream decoder in format changed event.
2021-08-18 10:47:13 +07:00
Riza Sulistyo 6775bdc888
Don't copy sock address if it points to the same memory (#2795) 2021-08-18 10:43:35 +07:00
sauwming 15663e3f37
Merge pull request from GHSA-2qpg-f6wf-w984 2021-08-10 11:53:25 +08:00
sauwming f6dfae1f6d
Fix socktype and duplicate checking in pj_getaddrinfo() (#2788) 2021-08-09 12:09:23 +08:00
sauwming b1e2983f36
Add minimum interval for keyframe missing events in Openh264 (#2786) 2021-08-09 11:25:15 +08:00
sauwming 0ceb274989
Add Mac and iOS implementation of guid generation (#2784) 2021-08-09 11:12:04 +08:00
sauwming 5c1fa437cc
Add checks and assertion if PJSIP string length is negative (#2783) 2021-08-09 11:11:32 +08:00
Krzysztof Marciniak 7069b04b1b
Fix signature checking code (#2780) 2021-08-04 10:16:30 +08:00
SamVanBelle 7658fae4e4
Follow-up of #2726 (#2782)
Reset ICE flag when re-using srtp transport to allow for remote address update in dtls_on_rcv_rtp.
2021-08-04 10:15:38 +08:00
Nanang Izzuddin 4783d28c07
Update SECURITY.md
Add PGP public key info.
2021-07-29 16:13:15 +07:00
Riza Sulistyo 115b1db6dc
Support webrtc-aec3 on windows (#2775)
* Support webrtc-aec3 on windows

* Add modification to PJSIP_NOTES
2021-07-28 14:39:47 +07:00
Perry Ismangil bf96913963
Create SECURITY.md (#2776)
Initial commit
2021-07-28 06:18:37 +01:00
Florian Xaver f39de17f5f
Fix compilation of 3rdparty_media_sample (introduced by #1463) (#2770) 2021-07-28 08:45:26 +07:00
Riza Sulistyo 43d1bc90d7
Avoid deadlock on unsubscribe event (#2771) 2021-07-27 11:29:38 +07:00
Nanang Izzuddin d5f95aa066
Merge pull request from GHSA-cv8x-p47p-99wr
* - Avoid SSL socket parent/listener getting destroyed during handshake by increasing parent's reference count.
- Add missing SSL socket close when the newly accepted SSL socket is discarded in SIP TLS transport.

* - Fix silly mistake: accepted active socket created without group lock in SSL socket.
- Replace assertion with normal validation check of SSL socket instance in OpenSSL verification callback (verify_cb()) to avoid crash, e.g: if somehow race condition with SSL socket destroy happens or OpenSSL application data index somehow gets corrupted.
2021-07-23 11:49:21 +08:00
Nanang Izzuddin c80f59eb90
SDL full-screen mode fixes and enhancement (#2759)
- Add fullscreen mode PJMEDIA_VID_DEV_FULLSCREEN_DESKTOP (no video mode change), which is mapped to SDL_WINDOW_FULLSCREEN_DESKTOP.
- Fix resizing while in full-screen.
- Update PJSUA, PJSUA2 & pjsua app, e.g: fullscreen setting was boolean (fullscreen enabled/disabled), now it is enum: disabled, fullscreen, or fullscreen desktop.
2021-07-21 11:47:07 +07:00
santevid 05cad67f52
Fix in the SDP negotiator - if the offer's media is disabled, do not compare transports (#2763) 2021-07-13 17:36:49 +08:00
Momo Takanashi 6a700a6276
Added pj_turn_sock_connect for TURN TCP Allocations (#2754) 2021-07-13 11:17:59 +07:00
Dan Oprescu 0966d4c6dd
Fix 's default constructor to do what the documentation says. (#2762) 2021-07-12 08:54:22 +07:00
Nanang Izzuddin f7ff6b2440 Misc (re #2698): Update python test:
- Retry running pjsua upon failure (due to address-in-use error, happened quite frequently on MacOS in GitHub CI).
- Minor fixes: missing 'self', add slight delay after closing socket to reduce possibility of address-in-use error, make sure sip port is not equal to telnet port.
2021-07-08 17:14:23 +07:00
Nanang Izzuddin 277ba23257 Merge branch 'master' of https://github.com/pjsip/pjproject 2021-07-08 13:47:25 +07:00
Nanang Izzuddin 8813fe2520 Re #2760: Fix documentation of pj_grp_lock_create(), group lock reference counter is initialized with zero instead of one (thanks to Cameron Pickett for the report). 2021-07-08 13:47:10 +07:00
Riza Sulistyo 70074ede91 Linker error when building pjmedia_test, pjsip_test and sample project when using Visual Studio, some of them caused by #2753. 2021-07-07 16:47:05 +07:00
Nanang Izzuddin 8ef2a3c0d0 Re #2753: Compile error when PJSIP_AUTH_HAS_DIGEST_SHA256 is disabled (or without OpenSSL). 2021-07-06 14:46:09 +07:00
Riza Sulistyo 99a1146a10
Filter RTP based on source address early to avoid invalid RTP session update (#2713) 2021-07-06 11:33:39 +07:00
SebaLedesma abf2b4c54f
Support for SHA-256 algorithm in SIP Digest Authentication (#2753) 2021-07-06 11:17:11 +07:00
Nanang Izzuddin d962342702
Apply volume settings in opening ALSA sound device, also add input volume setting (#2755) 2021-07-06 11:11:56 +07:00
Nanang Izzuddin e36026d45b
Update and rename bug_report.md to bug_report.yml 2021-07-02 09:31:46 +07:00
lin.sun 35810cc2bb
Example command line for pjsua testing with sipp. (#2750) 2021-07-01 11:15:42 +08:00
SamVanBelle 3402d7f897
Reset SSL BIOs (#2745) (#2746) 2021-07-01 11:15:16 +08:00
Nanang Izzuddin bc6f0ee6e3
Avoid call disconnection due to request timeout when network change happens. (#2737) 2021-06-29 15:00:58 +07:00
Nanang Izzuddin dfc511df26
Update configure-android for Android NDK 22, folder 'platforms' is now removed, the script needs it to detect latest platform version. (#2739) 2021-06-29 15:00:34 +07:00
Nanang Izzuddin cb35c79f21
Allow app modify video encoding param in on_stream_precreate() (#2741) 2021-06-29 15:00:12 +07:00
Nanang Izzuddin 4dbc8fca31
Fix TCP/TLS connect issue when epoll using EPOLLONESHOT (#2747) 2021-06-29 14:59:45 +07:00
Riza Sulistyo 3844cd1b8b
Avoid deadlock when restarting SIP UDP transport due to holding pjsua lock (#2731)
* Avoid deadlock when restarting SIP UDP transport due to holding pjsua
lock.

* Add callback to lock/unlock any lock held when waiting for the read spin loop finish.

* Use simpler approach by unlocking before restarting UDP transport.

* Add doc to pjsip_udp_transport_restart() and pjsip_udp_transport_restart2() of the possibility of deadlock.
2021-06-29 14:58:22 +07:00
Nanang Izzuddin 5b591b44be
Add option --enable-speex-resample to configure script (#2742) 2021-06-29 09:17:32 +07:00
Nanang Izzuddin b88ba9be64 Misc (re #2698): Update libsamplerate license info (thanks to Olle Frimanson for the info). 2021-06-18 13:43:12 +07:00
Nanang Izzuddin a5bd5e9d44 Misc (re #2698): Update docs of TD timer in SIP transaction, which also affects tsx timeout timer for both INVITE & non-INVITE tsx since https://trac.pjsip.org/repos/changeset/3203.
Thanks to Pirmin Walthert for the feedback.
2021-06-16 17:07:53 +07:00
Emre TUFEKCI 11316a3bd5
swift-C++ binding & swift pjsua2 sample app (#2723) 2021-06-11 09:52:34 +08:00
sauwming df30cc273a
Reset DTLS state when stopping DTLS transport (#2726) 2021-06-07 14:37:46 +08:00
sauwming 0046373595
Add support for WebRTC AEC3 (#2722) 2021-06-03 11:50:47 +08:00
sauwming 0dcd025ef6
Update doc for ignoring stream keep alive (#2719) 2021-05-31 16:07:36 +08:00
sauwming 557bbbdd88
Disable maintaining ROC when restarting SRTP (#2720) 2021-05-31 16:06:52 +08:00
sauwming d245ffaf91
Ignore 192.0.0.0/29 address (#2718) 2021-05-31 16:06:25 +08:00
Nanang Izzuddin cb30280529
Fixed possible DTLS nego failure when using ICE with host and relay candidates (#2715) 2021-05-25 09:17:48 +07:00
Nanang Izzuddin b7a46394d2 Misc (re #2698): Increase the RTP packet size & PCM buffer size in pcaputil sample app. 2021-05-24 17:21:37 +07:00
sauwming 1cb34f56a7
Specify media direction when making, answering, or updating call (#2705) 2021-05-17 09:58:19 +08:00
sauwming f0ff5817d0
Fix double free of stun session (#2709) 2021-05-17 09:56:27 +08:00
Theo Buehler 40c4e10c1b
Do not redefine SSL_CIPHER_get_id() for LibreSSL (#2708)
Both SSL_CIPHER_get_id() and SSL_set_session() are available in all
LibreSSL versions. SSL_CIPHER will become opaque in LibreSSL 3.4.x,
so this redefinition reaching into the struct will break the build.
2021-05-10 14:12:53 +08:00
sauwming ed28d04a66
Fixed remote address change checking in DTLS transport (#2703) 2021-04-23 13:24:43 +08:00
sauwming bdbeb7c4b2
Skip unsupported digest algorithm (#2408)
Co-authored-by: Nanang Izzuddin <nanang@teluu.com>
2021-04-22 14:03:28 +08:00
Nanang Izzuddin b6bf662221 Misc (re #2698): Skip pjsua test scripts-sipp/uac-reinvite-bad-via-branch on MacOS due to unreliable result, i.e: always getting 200 response. Note that the test objective is to detect/avoid assertion, the test scenario will keep sending INVITE until receiving 500 response (indicating bad/duplicated Via branch is detected), on fast machines where INVITE tsx destroyed quickly, pjsua will send 200 response, instead of 500. 2021-04-20 15:34:27 +07:00
sauwming f5949e8590 Merge branch 'master' of github.com:pjsip/pjproject 2021-04-19 14:26:33 +08:00
sauwming 28b36716ad Misc (re #2698): Fixed warning of using UI
View bounds not from main thread
2021-04-19 14:26:07 +08:00
Nanang Izzuddin 41bc488e1c
Avoid crash/exception in unregistering socket on iOS after SIP UDP socket-replace fails (#2691) 2021-04-19 09:18:20 +07:00
Sean Bright 4746ecff38
sdp.c: Use correct conversion specifier for uint32_t (#2693) 2021-04-15 13:38:06 +07:00
Riza Sulistyo 36b2510af0
Update openssl for windows download link 2021-04-12 16:37:33 +07:00
Sébastien Blin 997a468a5e
ip_helper_generic: ignore non running interfaces (#2687) 2021-04-12 13:21:31 +07:00
sauwming ea7105c222
Allow SIP transaction to continue for certain case despite transport error (#2683) 2021-04-01 16:06:10 +08:00
Nanang Izzuddin 4772d62ed2
Fix reject incoming call before sending any response (auto 100/trying response is disabled) (#2676) 2021-04-01 11:50:57 +07:00
Riza Sulistyo 68171af116
Check error returned from decode callback of the decoding process using video toolbox codec. (#2671) 2021-03-31 13:30:28 +07:00
Dan Oprescu 29412ceb82
call_change_cap_dev() should allow *any* valid capture device, ie. including PJMEDIA_DIR_CAPTURE_PLAYBACK for example (#2678) 2021-03-31 10:03:55 +08:00
Hubert LOBIT c075a41071
Add a `getID()` method to PJSUA2 Buddy class (#2681) 2021-03-30 16:15:15 +08:00
sauwming d52050bb75
Match tx telephone events clock rate with local's clock rate (#2679) 2021-03-30 14:31:02 +08:00
Hubert LOBIT 742f7dc252
Fix installation of libpjsua2 shared libraries (#2670) 2021-03-24 11:55:55 +07:00
Riza Sulistyo 801484823c Changed version to 2.11-dev 2021-03-17 15:51:36 +07:00
Riza Sulistyo 842b4ba27d Changed version to 2.11 2021-03-17 14:34:46 +07:00
Nanang Izzuddin 79531cbc05
More works on Trickle ICE (#2667)
- Improve trickling state management (fix no SIP INFO when initial INVITE responded immediately with 200, strayed SIP INFO after trickling is done, etc).
- Fix issues when rtcp-mux is enabled.
- Allow process incoming SIP INFO before receiving remote SDP.
- Use regular ICE on re-INVITE (with reinit media flag).
- Avoid calling pj_ice_strans_get_running_comp_cnt() for loop condition.
- Fix bug in pjnath-test: TURN server set wrong peer channel number.
- Added timer for end-of-candidate indication from remote & don't flag ice-mismatch if remote uses default address in trickle ICE
2021-03-17 13:00:01 +07:00
Alex Kalmuk b3e51c7a7d
Add embox rtos to supported targets in README.txt (#2643) 2021-03-17 10:07:33 +07:00
Nanang Izzuddin a6512caafa Merge branch 'master' of https://github.com/pjsip/pjproject 2021-03-17 09:22:41 +07:00
Nanang Izzuddin fd7fe4b519 Misc (re #2504): Suppress a compile warning on MSVC2005: unreferenced param 2021-03-17 09:22:25 +07:00
sauwming 1a3f8ad60d
Fixed race condition between media event callback and stopping video (#2666) 2021-03-12 16:42:56 +08:00
sauwming 3e68412e58 Apple SSL (re #2482): Remove compile warnings of unused variables 2021-03-10 19:04:40 +08:00
sauwming e56870f761 Apple SSL (re #2482): Fixed listener creation which already incorporates port in the parameters 2021-03-10 18:59:39 +08:00
sauwming 2d6dd96e5b Apple SSL (re #2482): Fixed possible incorrect scheduling of next receive if dispatch_data_apply() is called multiple times 2021-03-10 17:45:47 +08:00
Nanang Izzuddin dd2827fcfe Trickle ICE (re #2588):
- Disable assertion check when a check receives double completions.
- Remote candidate count check should not be in an assertion form.
- Don't stop ICE when updating checklist failed.
2021-03-10 15:07:11 +07:00
Nanang Izzuddin 5baab42295 Merge branch 'master' of https://github.com/pjsip/pjproject 2021-03-10 10:12:34 +07:00
Nanang Izzuddin 25c5eea417 Trickle ICE (re #2588):
- Fix premature end-of-candidate indication.
- Fix premature ICE session destroy in sending INFO (update remote with local candidates).
- Fix assertion when foundation list is full.
- Fix assertion when pruned check is completed/timed-out.
- Minor, missing 'static' for internal functions.
2021-03-10 10:05:45 +07:00
sauwming b48bae83bc Misc (re #2504): Add microphone usage permission for ipjsua swift app 2021-03-09 18:24:39 +08:00
sauwming ec78f808c5 Misc (re #2504): Fix runtime warning of UI API called on a background thread in ipjsua 2021-03-09 18:17:23 +08:00
sauwming 63981ce325 Misc (re #2504): Fix illegal threading exception in ipjsua app when running on device 2021-03-09 18:00:36 +08:00
Riza Sulistyo eeef964ad7 Re #2552: Fix "sf error code: -13" log due to double buffer release. 2021-03-09 14:00:41 +07:00
sauwming 90a7d70ae2
Fix secure transport checking (#2663) 2021-03-09 13:39:41 +08:00
Nanang Izzuddin 7f508cac14 Misc (re #2504): fix pjsua app, command cl only list max 4 conference ports 2021-03-09 11:12:34 +07:00
Riza Sulistyo 35e0fc44be Misc (re #2504): Add some files/folders generated by VS to git ignore list 2021-03-09 08:19:56 +07:00
Riza Sulistyo 74c34399d6 Misc (re #2504): Suppress some compile warning on VS Windows. 2021-03-09 07:32:36 +07:00
nanangizz ef87e6da8b Merge branch 'master' of https://github.com/pjsip/pjproject 2021-03-08 16:44:37 +07:00
nanangizz c1ebf338d7 Misc (#2504): Fix compile warnings in libyuv on Mac introduced by 681b1f34a9 (reverted, put the warning suppression in Makefile so libyuv app won't be affected) 2021-03-08 16:44:06 +07:00
sauwming 67e46c1ac4
Merge pull request from GHSA-8hcp-hm38-mfph
* Check hostname during TLS transport selection

* revision based on feedback

* remove the code in create_request that has been moved
2021-03-08 17:39:36 +08:00
Nanang Izzuddin 97b3d7addb
Merge pull request from GHSA-hvq6-f89p-frvp 2021-03-08 17:09:34 +08:00
sauwming eaf5622f6a Misc (re #2504): Remove optional libraries from ipjsua project 2021-03-08 16:53:58 +08:00
sauwming 6d0fd193c8 Update ipjsua project settings and disable use of deprecated API 2021-03-08 16:37:18 +08:00
nanangizz 681b1f34a9 Misc (re #2504): Suppress some compile warnings on Linux 2021-03-08 15:00:53 +07:00
sauwming 63d120f441 Misc (re #2504): Suppress compilation warning of unused function on Mac 2021-03-08 13:13:10 +08:00
sauwming daff4e7749
Increase SDP version when receiving re-INVITE without SDP (#2646) 2021-03-08 10:01:27 +08:00
Riza Sulistyo 940e3c0443
Support Android AMediaCodec (#2552)
* Implement android AMediaCodec AVC/VPX codec.

* - Change "anmed" to "and_media" prefix for clearity.
- Check if encoder/decoder exists before enabling codec.

* Fix bug on enum info.

* Add support to AMRNB and AMRWB audio codec.

* Modification based on comments.

* - move VPX packetizer from codec implementation.

* - Remove unwanted changes.
- Fix bug on vpx (VP9) packetize method.

* - New method to initialize vpx packetizer config.
- Don't use pt as codec id.

* add compiler option to prioritze using software or hardware codec.

* add documentation related to packetization mode for H264.

* fix some potential compile error.

* Specify video codec PT to support #2656.
2021-03-05 21:59:07 +07:00
Riza Sulistyo 433cf50b1c
Add option to disable auto re-registration. (#2652)
* Add option to disable auto re-registration.

* modification based on comments

* Change config name and add doc.
2021-03-05 14:42:21 +07:00
Riza Sulistyo d9055ede5c
Allow EC to be used when sound device is opened on speaker mode only (#2651)
* Add option to always use VPIO on coreaudio dev.

* Revert "Add option to always use VPIO on coreaudio dev."

This reverts commit 55d6da5b4b.

* Allow EC to be enabled when sound device is opened on speaker only mode.

* Modify assertion to allow ec to be set on playback only mode.
2021-03-04 16:08:52 +07:00
Riza Sulistyo 9fdcbd5cc6
Differentiate video codec ID by assigning each codec backend a specific PT number (#2656)
* Differentiate video codec ID by assigning each codec backend a specific PT.

* Add usage comment.
2021-03-03 21:16:24 +07:00
Nanang Izzuddin ef10512043
Fix PCMU/A support in AVI player (#2618) 2021-03-03 15:29:33 +07:00
Nanang Izzuddin d331da47c8
Update pjsip-simple RPID (#2639)
- Allow <note> element in <tuple> set in pjsip_pres_status.info[0].rpid.note without having RPID element in presence message body.
- Fix wrong parent node for finding note element in get_tuple_note().
- Update docs: fix typo, etc.
2021-03-03 15:27:57 +07:00
Nanang Izzuddin 415ada6a61
Fix SIP session timer not retry refreshing after a re-INVITE refresh responded with 503 (#2657) 2021-03-03 15:08:40 +07:00
sauwming 6470fb9e4b
Fixed race condition in regc_send() (#2653) 2021-02-24 17:03:29 +08:00
sauwming 0438a4762c
Modify pjsua maximum calls setting (#2654) 2021-02-24 17:02:58 +08:00
Riza Sulistyo e70c4887d0
Remove ioqueue key from set when calling pj_ioqueue_post_completion() (#2633)
* Remove ioqueue key from set when calling pj_ioqueue_post_completion().

* Clear connecting operation.
2021-02-23 12:07:51 +07:00
sauwming 0c78b9e8c8
Add compile time option to disable auto sending of 100 response (#2642) 2021-02-22 13:58:19 +08:00
Nanang Izzuddin 28d858ca91
Add simple Kotlin app (#2648) 2021-02-22 10:44:09 +07:00
weissinet 632fe2e8cf
Use CoreAudio for Mac for macCatalyst (#2635) 2021-02-19 14:14:53 +08:00
sauwming 9c778a700a
Fixed race condition between stopping video stream and format change event (#2645) 2021-02-18 13:15:49 +08:00
Nanang Izzuddin aadc643a01
Fixed assertion in media update of session refresh after previous SDP offer has been rejected (#2627) 2021-02-15 10:18:02 +07:00
Riza Sulistyo e1b82fc25d
Update RTP timestamp on inactive/paused video stream (#2640) 2021-02-15 10:05:29 +07:00
Nanang Izzuddin 73553fbd02
Use UTC time in PJSIP presence PIDF timestamp (#2638) 2021-02-15 09:04:06 +07:00
sauwming 64cb72a581
iOS Swift sample app (#2636) 2021-02-11 10:57:01 +08:00
Nanang Izzuddin 8744597ca4
Update ccpp.yml: use Python 2.7 for pjsua tests
Looks like the default version of Python in Ubuntu has just been changed to 3.x. Currently pjsua tests can only run on Python 2.x.
2021-02-09 19:35:12 +07:00
Riza Sulistyo 6e62517a4e
Use SRTP attribute specified on SDP when starting SRTP-SDES transport (#2609)
* - use SRTP attribute specified on SDP when starting SRTP-SDES transport.

* Check for only key changes on SDP and compare it to the SRTP settings.

* check and change the crypto key on sdes_media_start().

* Move check for the answerer side to the original place.
2021-02-03 12:59:48 +07:00
Alex Kalmuk 974cb47351
Add --disable-pjsua2 option for targets which lacks C++ (#2630) 2021-01-28 10:45:32 +08:00
Alex Kalmuk da33d931cb
Fix ai_socktype to be zero when passed to getaddrinfo (#2619)
Also filter duplicate addresses from pj_getaddrinfo output.
2021-01-26 10:19:04 +07:00
sauwming fceab8d468
Fix sound output issue when running iOS apps on Mac (#2612) 2021-01-14 08:11:14 +08:00
naf 3e8211db8b
Add support for SECLEVEL=n (#2596) 2020-12-18 20:22:49 +08:00
Nanang Izzuddin e6f7d032dd Re #2572: fix assertion in auto_rereg_timer_cb() when trying to re-register to an unavailable registrar via UDP. 2020-12-18 16:36:58 +07:00
Riza Sulistyo a29e9dc3e5
Modify on_new_session callback as optional. (#2534) 2020-12-15 14:32:06 +07:00
Riza Sulistyo 5e8eb2eb13
Github action/CI for windows. (#2344) 2020-12-15 13:37:59 +07:00
Frédéric-Philippe Metz c06727f678
Fix bad Video SDP when using 3rdPartyMedia and PJMEDIA_DIR_ENCODING only (#2550)
Co-authored-by: Frederic-Philippe Metz <metz@myfred.net>
2020-12-15 13:26:54 +07:00
Nanang Izzuddin 22b47a3673
Fix crash in starting CLI telnet when port is in already use (#2607) 2020-12-15 12:19:52 +07:00
Nanang Izzuddin 580b0f3ef3
TLS failed to load password-protected private key from buffer (#2606)
Fix loading TLS cert from buffer with private key password-protected, adding logs in loading cert/key, updated expired TLS cert in SSL socket unit test.
2020-12-15 10:25:13 +07:00
Nanang Izzuddin d3542d9143
Use EPOLLEXCLUSIVE or EPOLLONESHOT in ioqueue epoll (#2604)
* Update epoll to use EPOLLEXCLUSIVE, or EPOLLONESHOT if EPOLLEXCLUSIVE is not available.
* Avoid concurrency getting disabled on SSL listener socket (concurrency will be disabled when whole_data==TRUE)
* Disable EPOLLEXCLUSIVE/EPOLLONESHOT when using OpenSSL older than 1.1.0
2020-12-15 09:51:14 +07:00
sauwming caa34e8cbd
Support new Mac M1 ARM64 architecture (#2591) 2020-12-14 11:48:46 +08:00
Nanang Izzuddin d65cacddd3
Implement trickle ICE (#2588)
Squash & merge trickle-ice dev branch to master.
2020-12-11 09:40:57 +07:00
Nikolai ZHUBR dad6a34680
Fix building with video support (including dshow camera) on mingw (#2589) 2020-12-10 15:54:40 +07:00
Nanang Izzuddin 2a0095175f
Supporting mingw-w64 (#2598) 2020-12-10 15:50:56 +07:00
jmaggard10 d34228fedd
Add musl target detection in config.sub (#2566) 2020-12-10 13:48:33 +07:00
Sean Bright 86f3ea6059
Don't infinite loop when searching CLI history list (#2560)
- The easiest way to clean up the history list when moving an item is to just remove it and reinsert, so use pj_list_erase().
- Also in inserting entry to CLI history list (`insert_history()`): trim string before compare (as history entries are trimmed), replace pj_list_insert_nodes_after() with pj_list_erase(), avoid buffer overflow in string copy, and a bit optimization: only copy string when needed.
2020-12-10 13:48:14 +07:00
sauwming 2eea0ace2b
Report disconnection event immediately when hanging up a call (#2600) 2020-12-04 10:29:45 +08:00
Jamil fe963266b1
Add ios arm64e arch support (#2537) 2020-11-24 11:28:32 +08:00
Michael Scheiffler bef8339e31
Conf functions to disconnect all sinks/sources (#2585) 2020-11-24 11:27:57 +08:00
Apteryks 67881cf4f2
libpjproject.pc: Move external libraries to Libs.private. (#2501) 2020-11-24 09:30:18 +07:00
Nanang Izzuddin c6bc0b1e2e
Create new contact for reregistration after transport disconnected (#2572) 2020-11-20 10:53:59 +07:00
Nanang Izzuddin 2925cca94f
Fix bugs in pjsip_inv_answer() (#2472) 2020-11-20 10:52:55 +07:00
Nanang Izzuddin 90a16c523b
Race condition between transport destroy and acquire (#2470)
* Handle race condition between transport_idle_callback() and pjsip_tpmgr_acquire_transport2().
* Add transport destroy state check as additional of transport shutdown state check
2020-11-20 10:52:22 +07:00
Nanang Izzuddin 0d911f82d0
Fix bug in video stream when incoming RTP packet timestamp rolls over. (#2584) 2020-11-20 10:51:30 +07:00
Michael Scheiffler 2701e5eab6
Reordered write_port() in conferencer to avoid writing to a disabled port (#2583) 2020-11-19 10:35:19 +07:00
Andreas Wehrmann fe5ef0c3a4
PJSUA call: fix on_pager_statusX() callbacks for in-dialog requests (#2490)
- on_pager_status() was called twice: once for event TSX_STATE and later for event TIMER
- on_pager_status2() was not called at all
2020-11-19 10:01:17 +07:00
Jeesang Kim 28fe62d69f
Append a vscode for gitignore (#2579) 2020-11-19 09:20:31 +07:00
Nanang Izzuddin b39dd1587d
Fix click noise in libsamplerate (#2565) 2020-11-18 16:55:44 +07:00
Michael Scheiffler 60b1e09cd0
Added underlying buffer configurability for splitcomb (#2570) 2020-11-18 16:53:01 +07:00
Nanang Izzuddin 014600b4a8 Merge branch 'master' of https://github.com/pjsip/pjproject 2020-11-13 17:19:33 +07:00
Nanang Izzuddin 634e7cf3d8 Misc (re #2504): Fix pjsua app: avoid using my_atoi() on non-NULL-terminated strings. 2020-11-13 17:19:16 +07:00
sauwming bba95b8a95
Prevent regc destroy when it is busy (#2575) 2020-11-11 10:28:28 +08:00
sauwming c59a3b3af0
Add getting shared curves for OpenSSL 1.1.1 (#2573) 2020-11-06 14:43:29 +08:00
Michael Scheiffler 540ab3bce6
Added function pjmedia_tonegen_stop_loop() (#2571) 2020-11-06 11:19:51 +08:00
Michael Scheiffler d8f0ed8f84
Fixed memory corruption on unsupported ALSA channel count (#2569) 2020-11-03 08:54:38 +08:00
Nanang Izzuddin f3e091fac0
Invoke on_call_sdp_created callback for new SDP offer generated by pjsua_call_set_vid_strm() (#2564) 2020-11-02 14:46:15 +07:00
Nanang Izzuddin 603de9bbb3 Merge branch 'master' of https://github.com/pjsip/pjproject 2020-10-24 17:25:05 +07:00
Nanang Izzuddin b1e3966f1e Misc (re #2504): Update pjsua test: registration test sometimes fails when the test script fails to connect fast enough to pjsua via CLI telnet (registration completed before the telnet connection established). 2020-10-24 17:24:50 +07:00
sauwming 86fdff32e7
Disallow forceful close of pjsua transport (#2557) 2020-10-23 08:37:03 +08:00
sauwming f72eba9afb
Remove multiplication by channel count in calculating ALSA buffer size (#2556) 2020-10-22 10:12:05 +08:00
sauwming d85f227ff9
ALSA dev incorrectly sets the number of samples per frame (#2549)
* Revert the commit in issue #2223
* Make sure buffer size setting is sufficient
2020-10-15 14:36:13 +08:00
Riza Sulistyo efbe7164e9
Option to send keep alive periodically when stream is started for NAT hole punching (#2518)
* send keep alive when stream is started.

* modification based on comments.

* Add documentation.

* Modification based on comments.

* Grouped configuration.
2020-10-12 14:37:30 +07:00
Riza Sulistyo c6e9af5f5a
Server Name Indication on TLS doesn't allow IP literal. (#2539)
* Server Name Indication on TLS doesn't allow IP literal.

* moved hostname check to SSL backend.

* Remove unwanted changes to the file.
2020-10-12 14:23:43 +07:00
Riza Sulistyo 7a702b9aab
Add option to disable ice mismatch check. (#2538)
* Add option to disable ice mismatch check.

* Fix check error and modify doc.

* Modification based on comments.
2020-10-12 12:38:12 +07:00
sauwming ce18018cc1
Fix incorrect copying of destination info when creating CANCEL (#2546) 2020-10-12 13:31:25 +08:00
Sergey Strelchenko 004f7f7d8c
Fixed wrong macros PJ_DEF. PJ_DECL is correct. (#2545) 2020-10-12 11:58:53 +08:00
Riza Sulistyo 6d18fee00a Modification based on comments. 2020-10-08 11:58:18 +07:00
Max Truxa 9c66083712
Implement stream pre-create callback (#2507) 2020-10-05 14:20:46 +07:00
Nanang Izzuddin 7147e2e985 Merge branch 'master' of https://github.com/pjsip/pjproject 2020-10-05 10:33:35 +07:00
Nanang Izzuddin 1749cf8a50 Misc (re #2504): Updated PJSUA_VID_REQ_KEYFRAME_RTCP_PLI docs, it is supported since 2.10. 2020-10-05 10:33:14 +07:00
Riza Sulistyo af76445eb6 Fix check error and modify doc. 2020-10-02 21:01:03 +07:00
Riza Sulistyo 510716631e Add option to disable ice mismatch check. 2020-10-02 14:18:51 +07:00
Nanang Izzuddin da46a61baf
Invite state not shifting to CONFIRMED state after sending ACK manually (#2528)
Also updated docs:
 - on_send_ack(): explicitly mention that ACK request must be created using pjsip_inv_create_ack().
 - pjsip_inv_create_ack(): SDP answer to be set using pjsip_inv_set_sdp_answer(), was pjsip_create_sdp_body().
2020-09-30 14:33:25 +07:00
sauwming fb8a7772ef
Apple SSL backend using Network framework (#2482) 2020-09-29 11:31:01 +08:00
sauwming a184b14f8c
Speaker only setting still requires audio input device (#2522) 2020-09-29 11:29:15 +08:00
Nanang Izzuddin f834154bd6
ICE initialization never completes due to race condition (#2525)
* Fix possible race in ICE in TURN allocation init so TURN candidate status stays PJ_EPENDING.
2020-09-29 10:14:07 +07:00
Nanang Izzuddin 0157ddcda3
Update default setting for CFHost for getaddrinfo: from enabled to disabled. (#2526) 2020-09-29 10:05:09 +07:00
Nanang Izzuddin db4f8f23b9
Fixed bugs: (#2531)
- Maintain roll over counter in SRTP restart.
- Only reinit probation when SRTP is really restarted, was every srtp_start() (in PJSUA, media_start()/srtp_start() is called every after SDP nego, while SRTP may not be restarted, e.g: when SRTP policy/keys are not changing).
2020-09-29 09:57:01 +07:00
sauwming e2d8ee0f49
Suppress CodeQL warnings (#2530)
Also exclude some third party libs and python source
2020-09-23 18:45:59 +08:00
Perry Ismangil fd3f3ec064
Create codeql-analysis.yml (#2523)
* Create codeql-analysis.yml

Setting up code scanning

Disabled java and C#
2020-09-17 23:03:13 +01:00
sauwming 806c8b490e
Initialize vid conf's buffer with black color (#2510) 2020-09-15 09:58:14 +08:00
Martin Navne 047dc3862a
Add event manager to the JB simulator (#2515)
The event manager is needed for stream subscriptions.
2020-09-01 16:55:11 +08:00
Nanang Izzuddin bd9dff4b02
Media loss after 5 minutes when using ICE+TURN (#2503)
- Assign unique local preferences for candidates with the same type.
- Update component's valid pair condition, instead of just the highest priority, also consider 'nominated' flag.
- Add new compile-time setting PJ_ICE_ST_USE_TURN_PERMANENT_PERM, if set, TURN client session will automatically renew permission for all remote candidates.
- Update local preference for peer reflexive candidate.
- Also update PRIORITY field value in performing connectivity check: use unique local pref (with peer-reflexive candidate type).
- Fix local preference mask for non-standard ICE prio calculation.
2020-08-18 13:03:44 +07:00
Nanang Izzuddin 4ec0b6485c
Avoid invoking callback on_pager_status twice when resending with auth fails. (#2489) 2020-08-18 11:35:33 +07:00
Max Truxa 5925c42ea3
Pass JB discard algorithm along other JB settings (#2506) 2020-08-14 10:35:11 +08:00
Nanang Izzuddin 32153443e7 Misc (re #2504): Fixed compile error 'declaration after statement', e.g: on MSVC2005 2020-08-10 11:37:29 +07:00
H5117 a9f4e1a8c3
libpjproject.pc: correct the field 'cflags' (#2403) 2020-08-04 14:29:24 +07:00
Nanang Izzuddin d36ed48d91
Also generate keyframe missing event in NAL decoding error (was only in frame decoding error). (#2492) 2020-07-27 11:34:26 +07:00
sauwming f5b48f82be
Clone local offer SDP in process_answer() to prevent modification (#2476) 2020-07-20 11:38:36 +08:00
sauwming 92d2e8df9a
Fix sip transaction to send pending message (#2471) 2020-07-20 11:32:54 +08:00
andreas-wehrmann 973bb671a1
PJ adjustable pool sizes (#2395)
Make several pool sizes settable via compile time macro settings. This can be used to deal with memory fragmentation issues in long running applications that encounter temporary high loads.
2020-07-15 11:46:59 +07:00
Riza Sulistyo 40dd48d109
Modify timer_id check on cancel() (#2463)
* modify timer_id check on cancel().

* modification based on comments.
2020-07-09 17:47:24 +07:00
sauwming b0aa9e93a7
Fixed failed reinvite if call opt is NULL (#2478) 2020-07-03 17:22:44 +08:00
Max Truxa 5f14950cb5
Add callbacks to receive RTP DTMF events (#2447) 2020-06-26 16:06:21 +08:00
Nanang Izzuddin 11fd8da3ed
Fixed bug in ICE callback implementation in PJSUA to reschedule timer after failed in acquiring dialog. (#2468) 2020-06-24 09:03:21 +07:00
sauwming 87653d5a22
Check current inv state before decreasing ref count (#2459) 2020-06-15 14:14:45 +08:00
Riza Sulistyo de9f0713b3
Possible leak tdata when receiving 200 OK response after the invite session is destroyed. (#2432)
* Possible leak tdata when receiving 200 OK response after the invite
session was destroyed.

* Add comments linking the PR to the changes.

* Add safety check.

* Fix possible leaked tdata when ACK is not sent due to timeout.
2020-06-10 15:20:51 +07:00
Riza Sulistyo f45f2d435a
Allow demote SRTP call to RTP when using re-INVITE with PJSUA_CALL_REINIT_MEDIA (#2451)
* - Allow demote SRTP call to RTP when using re-INVITE with
PJSUA_CALL_REINIT_MEDIA
- DTLS renegotiation when receiving re-INVITE with modified media
transport address

* Revert DTLS_DEBUG to 0.

* modification based on comments.

* modified comment.
2020-06-10 10:42:53 +07:00
Truong-Thanh-Quang 6503ec40a8
Fix dtmf signal &duration parsing in dtmf-relay INFO message (#2425) 2020-06-09 15:14:25 +07:00
Nanang Izzuddin 5d216a94c8
Fix bug when sending IM using null content (continuation of #2452) (#2454)
Also update on_pager_status() callback: set body param with message body (i.e: tdata->msg->body) when IM is sent using null content.
2020-06-09 12:35:19 +07:00
Nanang Izzuddin 70defb8f2d
Add macro setting PJMEDIA_TELEPHONE_EVENT_ALL_CLOCKRATES (see also #2088), to allow app uses old behavior (before #2088) by setting it to 0. (#2427) 2020-06-05 15:36:46 +07:00
Nanang Izzuddin 55cd705114
Allow NULL content in sending IM if msg_data has body/multipart (#2452) 2020-06-04 13:19:17 +07:00
sauwming c2d7c7616f
Call on_call_media_event() callback asynchronously to avoid deadlock (#2446) 2020-05-22 15:07:28 +08:00
half-left c6623af698
Fix bug: level is not removed form src_port->listener_adj_level in (#2439) 2020-05-21 11:22:38 +08:00
jrun 645611d8a9
ice_strans: add on_valid_pair() to callbacks (#2433)
Related to #2263
2020-05-20 12:16:10 +08:00
Bogdan Cristea a35a53b4d9
Update vidgui sample app for video calls for Qt5 (#2415) 2020-05-18 16:08:17 +08:00
Nanang Izzuddin 30c1b64aba
Fix click noise in memplayer in loop mode (#2431) 2020-05-14 11:15:28 +07:00
Guido Falsi 78683646c8
Fix race condition in parallel builds (#2426)
* Some targets residing in `OBJDIRS` are missing a dependency on that directory, which results in a race condition, causing build to fail sometimes due to the directory not existing when running parallel builds.

* The `PJSUA_LIB` variable is not defined anywhere, resulting in an empty value, and no correct dependency on the pjsua shared library for `pjsua2`. The correct variable seems to be `PJSUA_LIB_LIB`, defined at the start of this same `Makefile`.
2020-05-11 13:50:39 +07:00
Riza Sulistyo 972daab036
Fix compile error when enabling PJMEDIA_STREAM_ENABLE_KA. (#2420) 2020-05-07 22:44:41 +07:00
Nanang Izzuddin fc1aa6b115
Fix short noise at the beginning of call when audio device started later than stream. (#2422) 2020-05-06 10:28:28 +07:00
Nanang Izzuddin 94ecbcb07e
Update video stream to publish format change event asynchronously (#2421) 2020-05-06 10:25:35 +07:00
sauwming 95c29aa1d2
Avoid undefinition of standard macros s_addr and s6_addr (#2423) 2020-05-06 09:38:26 +08:00
sauwming bb60df2346
Fixed assertion when receving an INVITE response during an UPDATE (#2419) 2020-05-05 14:02:14 +08:00
Max Truxa 97a3b349cf
Populate info format field in pjmedia_conf_get_port_info() (#2388) 2020-05-01 17:38:54 +08:00
sauwming b53b8e8651
Fix duplicate 408 status phrase
Re #2381
2020-05-01 17:18:02 +08:00
Alexey Kuznetsov 741bb0ced8
Dispatch semaphores on Darwin (#2351) (#2411)
Dispatch semaphore is a more modern semaphore implementation on Apple
platforms. Apple claims it is more efficient. A call down to kernel is
only needed when the calling thread needs to be blocked.

Dispatch semaphores work in sandboxed Mac apps, but POSIX semaphores
don't.
2020-04-30 16:03:31 +08:00
sauwming 798009da75
Fixed failed pjmedia test for multiple tel-event (#2412)
Revert #2375 and use a different approach to fix the assertion.
2020-04-30 12:45:35 +08:00
Nanang Izzuddin b23633707c
More CI works (#2376)
* pjsua-test:
  - Update pjsua-test module call: wait ICE update before checking media
  - Attempt to fix all failed tests by sipp module: changed SIPp port from 6000 to 50070 (port used by recvfrom module)
  - Update call module: confirm codec priority after change, fix DTLS-SRTP expect may race with state CONFIRMED
  - Add timeout check in telnet-ing to pjsua
  - ICE nego may race with call state CONFIRMED, so mod call better just sleep instead of expecting 'ICE nego success'.

* Other unit tests:
  - Print stack trace on crash on Linux and DarwinOS via SIGSEGV signal handler.
  - Update resolver test: print log on callback error, replace assertion checks with error return, fix comments, sleep periods, fix received packet count may be > 1 if server ignore the request (for example when the test machine experiencing high CPU load).
  - Update ccpp.yml: add -g for jobs with unit-tests.
  - More lenient on tsx retransmission count check in pjsip-test.
  - Update tsx_uac/s_test.c: allow retransmission timing diff from 150 to 500ms to accommodate possible CPU spike on some test machines.
2020-04-30 11:25:19 +07:00
sauwming 558922fc3f
Suppressed various compilation warnings (#2410)
Such as:
- conversion from string literal to 'char *' warning
- format-truncation warning

Co-authored-by: nanangizz <nanang@teluu.com>
2020-04-29 15:11:26 +08:00
sauwming 4f26a6dd3b
More consistent configure script detection message (#2409) 2020-04-29 15:09:06 +08:00
byoungdale 87df84ec12
Crash in simpleua sample app due to uncreated pool (#2394)
The issue occurred if video is disabled.
Co-authored-by: sauwming <ming@teluu.com>
2020-04-29 14:10:11 +08:00
sauwming 567c8e271f
Disable vpx if video is disabled (#2407) 2020-04-29 14:07:54 +08:00
Riza Sulistyo 7224dd44b5
Add thread locking callback when using OpenSSL. (#2336)
* Add thread locking callback when using OpenSSL.

* Don't use ssl socket's pool.

* move clear thread callback method using pj_atexit().

* revert unecessary changes and define new var as static.

* modification based on comments on PR.

* Add cleanup when initialization fail.

* Don't uninstall the thread callback if pj_atexit() fail.
2020-04-29 12:51:39 +07:00
sauwming 1c985975ce
Status phrases (#2381)
* pjsip: Add new status phrases

Taken from various (newer) SIP RFC's.

* psjip: Make status phrases match the RFC's

Replace homebrew phrases with the standard phrases from the SIP RFC's.

* pjsip: Add new status codes to pjsip_status_code enum

* Update symbols.i

* Fix indentation of symbols.i

Co-authored-by: sauwming <ming@teluu.com>
2020-04-29 11:58:31 +08:00
Nanang Izzuddin 8cd15e8073
Increment outgoing RTP timestamp on inactive or receive only stream (#2340) 2020-04-29 10:55:14 +07:00
Nanang Izzuddin 346550de5e
VideoPreview not updating its device ID after device fast-switched (#2368) 2020-04-29 09:59:08 +07:00
sauwming 559a5754e9
Fix indentation of symbols.i 2020-04-28 16:44:31 +08:00
sauwming e6a957551c
Update symbols.i 2020-04-28 16:42:27 +08:00
Alex Hermann d1c2cd097f pjsip: Add new status codes to pjsip_status_code enum 2020-04-28 09:00:59 +02:00
sauwming b8eea5d015
Fixed assertion for offer with multiple telephone events (#2375) 2020-04-13 13:18:45 +08:00
Alex Hermann 50a7ed0d06 psjip: Make status phrases match the RFC's
Replace homebrew phrases with the standard phrases from the SIP RFC's.
2020-04-10 14:26:59 +02:00
Alex Hermann 687c58d76d pjsip: Add new status phrases
Taken from various (newer) SIP RFC's.
2020-04-10 14:26:39 +02:00
andreas-wehrmann b3ca3b50e1
don't use private account pool for allocating the address; (#2379)
it's not used in the account directly and will lead to a very slow increase in memory usage over time.
2020-04-09 17:53:42 +08:00
Martin Navne 7c93b0b646
Update pj_ioqueue_poll TRACE macro (#2370) 2020-04-08 10:20:36 +08:00
sauwming 0077afc2aa
Re #2308: update CI test on mac to install sipp 2020-03-26 17:11:34 +08:00
Nanang Izzuddin 6bbd5ed66a
Update pjsua-test module call to wait for ICE & DTLS-SRTP nego before checking media (#2353) 2020-03-23 15:05:44 +07:00
sauwming e1edb64d4d
Handle case when provisional response is sent after a final one (#2350)
Handle case when provisional response is sent after a final one
- If 100rel is required, prevent retransmission if the initial send fails, since the retransmission will cause a crash later.
- Otherwise, return error instead of asserting in sip_transaction
2020-03-20 10:37:11 +08:00
Nanang Izzuddin 2ea82e9e6c
Attempt to fix intermittent errors in pjsua-test (#2330)
* Update sipp script uas-forked-200.xml to avoid problem due to unpredictable response order
* Fix uac-reinvite-bad-via-branch.xml scenario when pjsua answer is 200
2020-03-19 15:04:27 +07:00
Nanang Izzuddin 5f689f5d23
Add option to exclude benchmark tests in unit tests (#2321)
* Add option to exclude benchmark tests in unit tests

* Loosen up resolver round-robin testcondition (percent difference allowance from 5% to 10%, the test result variance relies heavily on OS random number distribution).
2020-03-19 14:46:22 +07:00
sauwming ddf48e2045
Fix parallel build failure (#2306)
Re #2300:
* Fix parallel build failure when building pjsua2 due to typo in pjsip's Makefile
* Fix parallel build failure for swig component
2020-03-19 15:35:26 +08:00
Nanang Izzuddin 8c09346142
Video capture device ID reverted back to default in SIP session refresh (#2341) 2020-03-19 14:26:28 +07:00
sauwming 98f70c210f
Add more CI tests on Ubuntu and Mac (#2329) 2020-03-10 16:45:54 +08:00
明月惊鹊 68e5350335
Fix account ID verification in pjsua_call_make_call() (#2332) 2020-03-06 18:00:28 +07:00
Nanang Izzuddin fedc629c4a
More pjsua-test work: print full log to help investigating any failed test, and other minor updates. (#2322)
* pjsua-test print full test log if test failed
* Update subscription check condition in pjsua presence test
* Update ccpp.yml
2020-03-04 09:11:37 +07:00
Nanang Izzuddin cc2198c278 Loosen up resolver round-robin testcondition (percent difference allowance from 5% to 10%, the test result variance relies heavily on OS random number distribution). 2020-03-03 17:34:45 +07:00
Nanang Izzuddin 848ce29fa5
More pjsua-test work: retry telnet on fail and runall.py emits exit/error code (#2320)
More pjsua-test work: run.py retry telnet on fail and runall.py emits exit/error code
2020-03-03 10:17:27 +07:00
Nanang Izzuddin c3456980ba Add option to exclude benchmark tests in unit tests 2020-03-03 09:53:07 +07:00
Nanang Izzuddin 48a8aebc45
Update python pjsua-test to use telnet CLI (#2309)
* Update pjsua test to use pjsua telnet CLI, configurable via `DEFAULT_TELNET` setting in `inc_cfg.py`, set it to `False` to return to the old behavior using console prompt+stdin/stdout.
* Update pjsua test indentation: replace tab->space.
2020-03-02 09:48:54 +07:00
Saúl Ibarra Corretgé c5fdece84a
v4l2: add support for YUV420 (#2310) 2020-02-28 11:41:04 +08:00
sauwming dec146d750
Use port range when creating loop media transport (#2312) 2020-02-28 10:53:48 +08:00
Perry Ismangil 9b25cdbd46
Update issue templates (#2304)
* Update issue templates

* Create pull_request_template.md

* Create config.yml

Disable blank issues

* Clarifying required info

* Updated bug report template with more details
2020-02-27 11:41:22 +00:00
Riza Sulistyo 76f34a1d23
Add wildcard to represent "All" codec when changing codec priority on CLI mode on pjsua sample app. (#2307) 2020-02-27 17:43:02 +07:00
sauwming 9f208e962c
Add option to disable certain pjsua tests (#2289)
* Add option to disable certain pjsua tests
* install sipp for pjsua test CI
2020-02-27 18:01:37 +08:00
Nanang Izzuddin 072fee1e68
Merge pull request #2297 from pjsip/tls1.3
Add TLS proto for TLS 1.3 (only for OpenSSL backend)
2020-02-27 09:48:22 +07:00
sauwming d992606db0
Limit log printing if video conference is connected to a sink port that's not running (#2301)
* Limit log printing

* rev 1

* Add error counter info in the log
2020-02-26 09:18:08 +08:00
sauwming 150a80ca10
Merge pull request #2303 from pjsip/vid-log
Add more log in pjsua_vid and vid_conf
2020-02-25 13:34:38 +08:00
mingteluu 6e8bf7f337 more details in the log 2020-02-25 11:58:08 +08:00
mingteluu b76c134fea Add more log in pjsua_vid and vid_conf 2020-02-25 10:51:43 +08:00
Nanang Izzuddin 59c2d3493b
Merge pull request #2286 from jitsi/complete-pli-support
Add API for sending an RTCP Feedback PLI
2020-02-24 11:55:31 +07:00
Nanang Izzuddin 8fe9f349ba
Merge pull request #2295 from pjsip/disable-sdp-media-with-no-codec2
Disable SDP media with no codec (continuation of #2290)
2020-02-24 10:44:08 +07:00
Perry Ismangil 5516ebfbcb
Bitrise Android builds (#2291)
* For #2281 upgrading Gradle plugin

* For #2281 upgrading Gradle plugin

* Upgrading Gradle in swig Android
2020-02-22 15:43:28 +00:00
Saúl Ibarra Corretgé e6dedfaedd Update parameter docs 2020-02-21 12:29:28 +01:00
Saúl Ibarra Corretgé b65f09e81f vid_stream: add API for sending an RTCP PLI 2020-02-21 12:27:36 +01:00
Nanang Izzuddin 4fa33725bd Add TLS proto for TLS 1.3 2020-02-21 18:07:04 +07:00
Riza Sulistyo 5e178972aa
Merge pull request #2296 from pjsip/send_rtcp_err_log
use stream name instead of encoder channel name as log when send rtcp fail
2020-02-21 16:55:57 +07:00
Riza Sulistyo 0cc933a091 use stream name instead of encoder channel name as log when send rtcp
fail.
2020-02-21 15:15:05 +07:00
Nanang Izzuddin 38ca44800a Fixing silly mistake in #2290: missing handling for incoming call 2020-02-21 11:31:24 +07:00
Nanang Izzuddin 411135c300
Merge pull request #2290 from pjsip/disable-sdp-media-with-no-codec
Disable locally generated SDP media with no codec.
2020-02-20 18:07:58 +07:00
Riza Sulistyo 7f65bc7678
Merge pull request #2288 from pjsip/gitignore-vs
Add more VS 2015 stuff to .gitignore and fix some projects settings.
2020-02-20 18:04:14 +07:00
Nanang Izzuddin d2ece7dd87 Disable SDP media with no codec 2020-02-20 14:57:22 +07:00
Riza Sulistyo 2d9261c1ae Add more VS 2015 stuff to .gitignore and fix some projects settings. 2020-02-19 19:17:22 +07:00
Nanang Izzuddin 307ba42e87
Merge pull request #2287 from pjsip/tsx-destroy
Transaction module shutdown may leak resources when there is any transaction with pending transport
2020-02-19 14:13:33 +07:00
Nanang Izzuddin ddb5743a1e
Merge pull request #2285 from pjsip/gitignore
Added initial .gitignore
2020-02-19 13:43:51 +07:00
nanangizz 3980472947 Decrease send counter in transaction when its state is shifting to TERMINATED (where it cancels itself from send notification) and there is pending send. 2020-02-18 19:41:02 +07:00
Riza Sulistyo 4314c2be8f add Debug folder 2020-02-18 16:19:33 +07:00
Riza Sulistyo 6847aaddff Added VS2015 stuff to ignore. 2020-02-18 13:54:12 +07:00
Riza Sulistyo 1478a35fdb
Merge pull request #2283 from pjsip/riza_dev
#2282: Fix build error when using ffmpeg version 4.x.
2020-02-18 12:16:52 +07:00
nanangizz 90d50c298c Added initial .gitignore 2020-02-18 10:24:50 +07:00
Nanang Izzuddin c6767aa854 Create ccpp.yml 2020-02-18 10:03:32 +07:00
Riza Sulistyo a21754043b Close #2282: Fix build error when using ffmpeg version 4.x. 2020-02-18 09:03:56 +07:00
mingteluu c8927c65de Changed version to 2.10-dev 2020-02-14 17:08:22 +07:00
mingteluu 3e7b75cb2e Merge branch 'master' of https://github.com/pjsip/pjproject 2020-02-14 16:48:27 +07:00
mingteluu e5943ba8ea Changed version to 2.10 2020-02-14 16:47:41 +07:00
nanangizz 6ea8618d90 Close #2280: delete compare WAV tool in test dir 2020-02-14 16:10:01 +07:00
Riza Sulistyo c71d3d49cc Misc (re #2210): Fixed formatting mistake when printing destination on keep-alive log.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6161 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-07 12:02:00 +00:00
Sauw Ming 6741c75da7 Re #2264: Fixed crash if pjsua_var.acc[acc_id].regc is NULL
Note that the regc instance itself hasn't been destroyed since the refcount has been incremented, but acc->regc can already be NULL-ed.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6160 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-07 08:20:56 +00:00
Riza Sulistyo ae2e919d9e Misc (re #2210): Fixed various warnings on Visual Studio 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6159 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-06 04:02:56 +00:00
Sauw Ming 601d6e6824 Fixed #2266: Allow Via header with IPv6 containing []
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6158 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-06 02:52:10 +00:00
Nanang Izzuddin 95c09007dc Misc (re #2210): Fixed various compile warnings on MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6157 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-05 03:05:30 +00:00
Riza Sulistyo 4f035f338e Close #2105: Add option to specify SWIG bindings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6156 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 11:14:21 +00:00
Sauw Ming aa6fc15b1a Re #2229: Check to send pending data in the buffer even if the send completes immediately, since buffer may have been filled by then.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6155 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 05:37:21 +00:00
Sauw Ming f73d0a2416 Re #2210: Update sample app ipjsua project files based on Xcode 11.3.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6154 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 05:25:48 +00:00
Sauw Ming d125d73149 Re #2253: Check for insufficient buffer if remote is sending higher res than we can handle.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6153 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 05:08:14 +00:00
Nanang Izzuddin b99e98bb09 Close #2265: Fixed compatibility issues on Python 3.7 or above.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6152 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 04:47:32 +00:00
Sauw Ming e215f7990c Re #2253: Changed keyframe max distance to a max of 60s
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6151 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 03:17:56 +00:00
Sauw Ming 283cfc4398 Re #2253: Apply local fmtp setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6150 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 02:49:13 +00:00
Sauw Ming 7df07048c4 Re #2253
Fix vpx fmtp apply:
- Only adjust the frame rate if it exceeds max-fr
- Maintain aspect ratio when adjusting resolution



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6149 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-03 06:26:55 +00:00
Nanang Izzuddin 645a057b99 Misc (re #2210): Reverting r6133 as it is reported to cause crash on OpenSSL 1.0.x, and OpenSSL docs explicitly prohibit freeing SSL_SESSION after SSL_free(). Thanks Peter Koletzki for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6148 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-31 09:55:43 +00:00
Riza Sulistyo 1b67249cc8 Re #2253:
- Add vpx.h/vpx.c to Visual Studio project files
- Fix compile error/warning from Visual Studio



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6147 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-31 03:15:41 +00:00
Nanang Izzuddin 113cada9e8 Misc (re #2210): Fixed compile warnings in PJLIB timer unit test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6146 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-30 07:52:51 +00:00
Sauw Ming 187524186f Re #2210 (misc): Disable Darwin SSL if deprecated
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6145 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 04:45:27 +00:00
Sauw Ming c5e970e850 Re #2262: Suppressed compile warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6144 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 04:40:45 +00:00
Sauw Ming 92571dd89a Re #589: Suppresses warning of unused var
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6143 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 04:29:14 +00:00
Sauw Ming 0e129f8665 Fixed #2264: Potential deadlock between pjsua lock and sip transport's lock
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6142 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 04:05:51 +00:00
Nanang Izzuddin 5cb740f72b Misc (#2210): Added early check whether account is registered before sending unregistration in pjsua_acc_modify() (thanks to Peter Koletzki for the suggestion).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6141 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 03:48:51 +00:00
Sauw Ming bde1167cc3 Closed #2143: Add AEC info to call info & statistics dump
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6140 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 06:58:45 +00:00
Riza Sulistyo 71ff006510 Close #2263: Add callback to notify when first valid pair is found on ICE negotiation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6139 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 03:51:50 +00:00
Nanang Izzuddin d5ec2f4592 Misc (re #2210): Get rid of annoying persistent log lines due to video conference connection between active capturer and stopped/hidden renderer (thanks to Dmytrii Gonchar for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6138 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 02:42:42 +00:00
Riza Sulistyo ec2c39edc4 Close #2262: Notify when IP change handling is completed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6137 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 01:47:56 +00:00
Sauw Ming 2f3a1234d0 Closed #2261: Prevent unnecessary locking when adding group lock handler
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6136 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-17 00:59:51 +00:00
Riza Sulistyo 54d3f774d7 Re #589: Add scal.c to Visual Studio project files.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6135 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-16 09:13:35 +00:00
Sauw Ming 45675996ab Fixed #2260: Potential deadlock between sip_transaction and sip_reg
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6134 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-16 06:37:40 +00:00
Nanang Izzuddin dd7073c14d Misc (re #2210): Fixed memory leak in OpenSSL initialization due to unfreed SSL_SESSION object. The leak should only be occurred once in library lifetime. Thanks to Kim Daeyoung for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6133 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 08:02:54 +00:00
Nanang Izzuddin 85887b2367 Re #2251: Fixed bug in memory capture, wrong user data passed in invoking callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6132 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 07:26:36 +00:00
Nanang Izzuddin 74eb0a0289 Re #2251: Fixed bug in memory player, wrong user data passed in invoking callback. Thanks to Marcus Froeschl for the report and the fix.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6131 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 07:09:51 +00:00
Sauw Ming fe7a4e1135 Re #589: Fixed missing include file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6130 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-09 10:09:49 +00:00
Sauw Ming e98fe43314 Closed #589: Update Speex AEC to the latest version to get multichannel EC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6129 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-09 09:05:50 +00:00
Sauw Ming 3147bc0235 Re #1778: Temporarily disable VPIO on Mac for stereo due to recording sound defects.
Steps to reproduce:
- Revert this changeset
- Use pjsua to do sound loopback (cc 0 0) with --ec-tail=0 (VPIO disabled->audio fine) and ec-tail=1 (VPIO enabled->recording sound defects)

Several observations:
- Playback is totally fine in VPIO stereo mode.
- Defect more noticable in 44.1 kHz



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6128 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-08 08:55:30 +00:00
Sauw Ming 1e2b570d7a Re #1778: Fixed incorrect calculation for stereo mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6127 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-08 08:40:04 +00:00
Sauw Ming 824298c8ee Closed #2259: Fix check to cleanup provisional media
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6126 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-26 03:36:57 +00:00
Nanang Izzuddin 245cc13ce8 Re #2255: Fixed compile warning on MacOS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6125 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-24 02:13:32 +00:00
Sauw Ming e9e71f8753 Re #2210 (misc): Fixed incorrect error printing in Darwin dev when there's a runtime session error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6124 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-23 07:11:50 +00:00
Nanang Izzuddin 4f5a7a5016 Re #2255: Fixed wrong check of fullscreen mode in window creation and added pjsua app commands for fullscreen.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6123 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-23 03:27:09 +00:00
Nanang Izzuddin a414fb61f4 Re #2256: Readjusted build configs (after r6120 & r6121) to accomodate the convention that CXXFLAGS always includes CFLAGS in all PJSIP modules.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6122 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-19 11:31:55 +00:00
Nanang Izzuddin 1a1db21d52 Re #2256: Fixed build error for iOS target due to changes in r6120.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6121 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-19 10:00:53 +00:00
Nanang Izzuddin 192a6bfc43 Fix #2256: Mini refactored Android configure script:
- added CXXFLAGS & LDFLAGS parsing (from ndk-build output), CXXFLAGS was set to CFLAGS.
 - updated WebRTC instruction set to use SSE2, was generic, for Android emulator (x86 ABI).
 - updated C++ library/STL backend to use c++_shared, somehow '-lc++_static' is ignored after the refactor, also the official NDK docs mentions that c++_static may cause undefined behavior for app with multiple shared libraries (note pjsua2 app may use other shared libraries).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6120 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-19 02:57:20 +00:00
Riza Sulistyo dfb6aa264d Close #2258: Add PJSUA2 API to get and set OPUS codec setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6119 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-17 10:06:01 +00:00
Riza Sulistyo 43e4680406 Close #2257: Filter SRTP crypto setting for DTLS-SRTP profile.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6118 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-16 12:37:57 +00:00
Nanang Izzuddin b9fd883dc2 Close #2255: Add API for making video window full screen.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6117 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-10 03:55:51 +00:00
Nanang Izzuddin e8c72cf9ba Misc (#2210): Put back PJMEDIA_STREAM_CHECK_RTP_PT feature in stream (introduced in #1160).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6116 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-06 05:57:48 +00:00
Nanang Izzuddin 8631ffe736 Fix #2254: Updated SDP encoder of SDES to avoid deactivating/disabling media, it should be done by the parent/SRTP instead.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6115 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-04 09:01:19 +00:00
Nanang Izzuddin 5d24541741 Misc (re #2210): Updated assertion condition in TURN socket (was removed in r6111). Thanks to Sébastien Blin for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6114 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-03 07:18:17 +00:00
Sauw Ming 81b29e9aa2 Re #2252: Fixed failed pjmedia-test, due to unsupported conversion format.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6113 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-29 07:53:43 +00:00
Sauw Ming e472147378 Fixed #2251: Deadlock between PJSUA LOCK and conference mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6112 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-29 04:21:17 +00:00
Sauw Ming 5048567815 Re #2210 (misc): Removed assertion in turn sock which can be incorrectly triggered on first conection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6111 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-29 04:02:11 +00:00
Sauw Ming 3c9fa7ae2d Fixed #2253: Support for VP8 and VP9 video codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6110 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-22 06:18:55 +00:00
Sauw Ming 3237e7b188 Fixed #2252: Fix Darwin video issue if supplied image height is different from the resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6109 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-18 06:24:11 +00:00
Sauw Ming f1f5301d2f Re #2229: Fixed failed pjnath-test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6108 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-15 01:11:32 +00:00
Nanang Izzuddin 1bfd835547 Re #1437: Fixed linking error when PJMEDIA_HAS_VIDEO is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6107 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-13 10:08:59 +00:00
Nanang Izzuddin 2d9f105d82 Close #1437: Video keyframe request/response using RTCP-FB PLI.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6106 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-13 09:11:04 +00:00
Nanang Izzuddin dc0335a046 Close #1297:
- Updated PJMEDIA endpoint to rearrange dynamic payload type allocation in generating SDP for audio, the allocation arranged in pjmedia_audio_pt enumeation is no longer used.
 - Updated PJMEDIA_RTP_PT_TELEPHONE_EVENTS default value to 120, so lower PT values will be used by audio codecs.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6105 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-13 08:09:34 +00:00
Sauw Ming d1ee4a6350 Re #2210 (misc): Fixed memory leak when getting certificate info in OpenSSL
Thanks to Florian Kretschmer for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6104 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-12 09:01:41 +00:00
Nanang Izzuddin b48fd409dd Close #2088: Generate and negotiate telephone-event with multiple clock-rates in SDP offer/answer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6103 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-08 10:17:16 +00:00
Nanang Izzuddin 666251bbf9 Misc (re #2210): Fixed macro setting PJSIP_MAX_TIMER_COUNT issues: not overridable and bad docs (thanks to Christian Ambach for the report and the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6102 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-07 03:22:42 +00:00
Riza Sulistyo 948bbed19e Close #2250: Enable OpenH264 native log.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6101 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 08:10:42 +00:00
Riza Sulistyo bf74f883e6 Re #2249: Fixed warning on pjlib-test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6100 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 07:17:01 +00:00
Riza Sulistyo dd627bc809 Close #2249: Use sorted linked list for timer implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6099 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 06:17:53 +00:00
Sauw Ming a441c67a54 Fixed #2248: Memory leak if stream fails to be created
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6098 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-30 05:20:06 +00:00
Sauw Ming 4976aaa25e Re #2210 (misc): Clarify in the doc that on_stream_created()/destroyed() callback is for audio stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6097 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-25 01:42:02 +00:00
Sauw Ming e001752e3c Re #2210 (misc): Add passthrough codec source into Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6096 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-22 03:07:26 +00:00
Nanang Izzuddin c342e68d75 Fix #2247: Distorted video sent by iOS 13 devices.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6095 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-21 01:58:11 +00:00
Sauw Ming a0be35b381 Fixed #1778: Support for Voice Processing IO Audio Unit on Mac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6094 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-17 07:02:50 +00:00
Nanang Izzuddin fc665ef46f Fix #2245: Reconnect video stream listeners in video conference bridge after format changed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6093 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-15 08:58:41 +00:00
Nanang Izzuddin 3589e6f759 Re #2241: Fixed compile error due to declaration after code on older compilers or pre-C99 specs, such as MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6092 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-14 02:33:04 +00:00
Riza Sulistyo 9db76e8883 Fix #2244: Prevent continuous memory allocation when getting raw certificate on TLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6091 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-11 14:26:12 +00:00
Nanang Izzuddin 755f33d492 Fixed #2243:
- pjsip_tpmgr_acquire_transport2() should skip transports being shutdown in the lookup iteration.
 - Added some tracing logs in sip_transport.c.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6090 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-11 02:23:03 +00:00
Nanang Izzuddin dc4ed48423 Fixed #2242: Message buffer not set correctly in pjsip_rx_data_clone().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6089 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-10 06:54:12 +00:00
Riza Sulistyo d2938b4cdc Fixed #2241: Update "sent-by" field of Via header on CANCEL request for proxy scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6088 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-08 08:32:53 +00:00
Nanang Izzuddin d5a9caf6aa Fixed #2240:
- Avoid double pjsip_inv_dec_ref() by evaluating the local var 'state' instead of 'inv->state' in checking DISCONNECTED state in 'inv_set_state()', as the 'on_state_changed()' callback may recursively call 'inv_set_state()' and shift the state to DISCONNECTED.
 - Avoid inv sess destroy in the callback by increasing ref count.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6087 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 07:31:40 +00:00
Sauw Ming ab93cd51b6 Re #2210 (misc): Update JavaFX sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6086 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 06:59:57 +00:00
Nanang Izzuddin 33a3c9e0a5 Fixed #2239:
- Deinit OpenGL immediately when initialization fails, so video device {{{start()}}} and {{{put_frame()}}} will return immediately.
 - Introduced new media event {{{PJMEDIA_EVENT_VID_DEV_ERROR}}}, used for notifying app when video device reinit (due to format change) fails.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6085 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 04:26:39 +00:00
Sauw Ming 59cd1bb5c6 Re #2210 (misc): Add log if WebRTC AEC fails to be created (currently it only supports mono)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6084 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 02:38:14 +00:00
Sauw Ming de55ff2b28 Fixed #2238: Local hold is not reset if there's failure during reinvite/update
We set local_hold later, after sending the message is successful.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6083 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-02 03:42:13 +00:00
Nanang Izzuddin 617fdfd262 Re #2237: Updated SSL socket to use group lock in scheduling timer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6082 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-30 06:50:32 +00:00
Sauw Ming 67cafdf1ec Re #2210 (misc): Add doc and extra check for Endpoint::utilLogWrite(LogEntry)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6081 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-30 06:08:48 +00:00
Riza Sulistyo 3e45db57b1 Re #2232: Fix build error for swig wrapper. This fix will allow swig to import the preprocessor in config_site.h and config.hpp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6080 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-26 12:06:07 +00:00
Nanang Izzuddin ac00a60f99 Misc (re #2210): Fixed compile errors on MinGW.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6079 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-26 11:15:24 +00:00
Nanang Izzuddin 5dc221e74b Fix #2236: Fixed exception in iOS Video Toolbox H264 due to UI API called on background thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6078 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-25 03:34:38 +00:00
Riza Sulistyo 7eda469219 Fix #2235: UDP transport restart might not get called when replace_udp_socket() fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6077 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 15:34:33 +00:00
Riza Sulistyo 1914af648e Fix #2234: Memory leak with third party resampling.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6076 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 14:46:12 +00:00
Nanang Izzuddin 0dda8c8cca Close #2233: Changed enumeration approach in SWIG Java to type-unsafe enums.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6075 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 11:12:45 +00:00
Riza Sulistyo 7ba4ca7835 Close #2232: Crash on Endpoint::libDestroy() when there is an active call.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6074 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 22:47:05 +00:00
Sauw Ming 1a5b4a886b Re #2229: Fixed typo of variable type ioq op key.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6073 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 08:09:06 +00:00
Sauw Ming d311c69e84 Re #2218: ICE initialization issue if an error happens during allocating state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6072 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 07:27:53 +00:00
Sauw Ming d024a392ec Fixed #2229: Limitations in ICE data sending
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6071 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 07:25:41 +00:00
Sauw Ming b073ccb3cc Fixed #2231: Potential premature buffer reuse in UDP media transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6070 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 07:24:24 +00:00
Nanang Izzuddin 8b06775a7b Fix #2230: Fixed crash in STUN session due to race condition which leads to premature tdata destroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6069 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-12 08:46:05 +00:00
Sauw Ming 8ed4a1c9eb Re #2209: Add checking if expiration is specified for determining if there's an active registration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6068 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-11 01:03:47 +00:00
Nanang Izzuddin db368d6cc0 Re #2225: Fixed compile errors in timer on MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6067 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-09 08:41:53 +00:00
Nanang Izzuddin c381ed7e11 Misc (re #2210): Workaround for compile error 'unknown type name uint64_t' when building for Android x86 with NDK r20.
M    aconfigure
M    aconfigure.ac


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6066 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 08:29:25 +00:00
Nanang Izzuddin 1773fa8da6 Re #2228: Also updated PCM shifting in G722.1.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6065 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 05:20:32 +00:00
Nanang Izzuddin 6cf2381849 Re #2228: Fixed bugs in PCM shifting in G722 codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6064 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 05:19:40 +00:00
Nanang Izzuddin e4d0bb45d7 Misc (re #2210): Set local media port to zero when remote media port is zero in PJSUA early SDP verification, so disabled media will not be verified, otherwise unnecessary assertion due to failure verification may be raised.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6063 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 01:59:50 +00:00
Nanang Izzuddin 354d7da9fa Fix #2227: Added callback for sending ACK.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6062 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-05 05:03:12 +00:00
Nanang Izzuddin ba1182d61e Misc (re #2210): Division by zero in pjmedia_wav_player_port_get_pos(), i.e: when player has just been created (the position is 0) or when no loop is specified and player already reached EOF and stopped (the position is again 0). Thanks to Sergei Rozinov for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6061 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-04 09:57:56 +00:00
Nanang Izzuddin 7dbfebb815 Fix #2226: Skip authentication handling in evsub module if it is already done by other module.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6060 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-04 07:49:44 +00:00
Sauw Ming 4dbeb68ec2 Re #2225: Fixed incorrect pool to be released in pjlib timer test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6059 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-03 03:17:44 +00:00
Sauw Ming a49822da70 Fixed #2225: Timer heap refactoring
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6058 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-03 02:10:45 +00:00
Riza Sulistyo efb3a0bb9f Close #2224: De-Initialize ALSA sound device with snd_pcm_drop() instead of snd_pcm_drain() to avoid stuck issue
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6057 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 15:25:13 +00:00
Riza Sulistyo 6adec9df42 Close #2223: ALSA sound device wrapper implementation ignores period size returned by ALSA
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6056 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 15:02:12 +00:00
Riza Sulistyo 29883b397c Close #2222: Introduce a new compiler setting to allow to use cnonce for SIP authentication without hyphen character
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6055 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 14:13:32 +00:00
Riza Sulistyo ed08f5bbcb Fixed #2221: When using Openssl as TLS backend, close notify alert is not sent before closing the connection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6054 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 12:02:50 +00:00
Riza Sulistyo 8a15cf5dce Re #2220: Fixed the use of sk_X509_NAME_new macro. It might lead to build failure or runtime crash. Thanks to Peter Koletzki for the fix.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6053 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 09:32:26 +00:00
Sauw Ming a190e94028 Fixed #2220: Add list of trusted root CA for OpenSSL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6052 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-23 04:53:05 +00:00
Nanang Izzuddin 737e915274 Close #2219: Initialize enum fields in PJSUA2 objects.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6051 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-15 05:11:41 +00:00
Riza Sulistyo 34d3063627 Re #2210 (misc): optimize r6049.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6050 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-06 05:00:31 +00:00
Riza Sulistyo 2b44d5b2b2 Re #2210 (misc): Release pool last when destroying android video dev factory.
Thanks to Pandia Rajan for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6049 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-05 12:40:56 +00:00
Sauw Ming bec1bc9836 Fixed #2218: ICE initialization issue if an error happens during allocating state
Thanks to Sébastien Blin for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6048 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-29 07:07:11 +00:00
Nanang Izzuddin 3464650ee0 Misc (re #2210): Added SIP transport type DLTS. Note that this is not an implementation, just for app so it can register its own implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6047 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-29 02:32:55 +00:00
Nanang Izzuddin cf94e805c3 Misc (re #2210): Added format definitions for NV12 & NV21.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6046 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-29 02:25:34 +00:00
Nanang Izzuddin 3029598af6 Close #2217: Omit deprecated IPv6 addresses from ICE candidates.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6045 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-26 09:32:14 +00:00
Nanang Izzuddin b1f400b6d4 Fix #2216: reverted back changes in ticket #2198: r6025, r5998, r5995.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6044 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-26 05:40:42 +00:00
Nanang Izzuddin 805193c622 Fix #2215:
- Reset jitter buffer after Opus ptime decreased.
 - Updated jitter buffer framelist sequence restart detection, also added some tracing logs.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6043 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-25 03:00:33 +00:00
Nanang Izzuddin 747a9c190e Re #2211: Fixed compile error in pjsip_dlg_create_uac() on MSVC2005, var declaration should be at the beginning of function.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6042 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-22 08:53:01 +00:00
Riza Sulistyo c8f6f091bd Re #2210 (misc): Prevent overflow when searching for the closest video format.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6041 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-19 09:05:23 +00:00
Riza Sulistyo 917f917a6f Fix #2214: Check for PJ_ICE_ST_MAX_CAND when adding new ICE candidate.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6040 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-18 09:51:00 +00:00
Riza Sulistyo 63dd024b76 Fix #2213: First packet for TURN over TCP might get dropped.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6039 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-17 07:22:00 +00:00
Sauw Ming 46cd329d9e Fixed #2212: Fix potential buffer overflow in Video Toolbox codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6038 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-14 17:21:16 +00:00
Riza Sulistyo 0fe5acf5e9 Close #2211: Use group lock for SIP dialog.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6037 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-10 07:15:08 +00:00
Sauw Ming 5e8cbdb548 Re #2209: Fixed build failure on Android due to incompatible type
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6036 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 08:30:17 +00:00
Sauw Ming 3f58d4d10d Fixed #2209: Insufficient variable storage to contain Expires header field/ parameter
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6035 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 07:12:43 +00:00
Riza Sulistyo 2c5dc72dd5 Re #2210 (misc): Minor patch for SSL error message. Thanks to George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6034 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 05:41:29 +00:00
Sauw Ming 176a668790 Fixed #2208: Change default arch for Android and iOS to 64-bit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6033 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-21 04:30:42 +00:00
Sauw Ming 9a21903a2f Fixed #2207: build failure when using Android NDK r20
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6032 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-20 00:09:00 +00:00
Nanang Izzuddin 3fd1a9ab6c Changed version to 2.9-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6031 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 10:41:49 +00:00
Nanang Izzuddin 598ff92e45 Changed version to 2.9
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6029 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 08:56:16 +00:00
Sauw Ming e281f2e8ec Re #2147 (misc): Suppressed various warnings from XCode (iOS)
- this function declaration is not a prototype, and some typecasts



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6028 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 05:58:18 +00:00
Sauw Ming 428569df63 Re #2147 (misc): Suppressed warnings of unused function and misused comma
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6027 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 03:59:27 +00:00
Nanang Izzuddin b81fd15124 Misc (re #2147): Fixed compile warnings "dynamic exception specifications are deprecated in C++11".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6026 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 06:00:35 +00:00
Sauw Ming 65bc26e7c1 Re #2198:
* Do not return IPv6 address for loop transport
* Fixed failed PJSIP test because of  result count mismatch due to the additional IPv6 address



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6025 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 05:04:32 +00:00
Nanang Izzuddin 0a6ca0c45f Re #2181: Fixed incorrect index in getEncodingVideoMedia() & getDecodingVideoMedia iterations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6024 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 04:51:10 +00:00
Nanang Izzuddin f55a1e198e Misc (re #2147): Updated automated test configs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6023 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-11 05:24:02 +00:00
Nanang Izzuddin 5bcd75aec9 Misc (re #2147): Fixed warnings in SSL socket: redefinition of typedef 'pj_ssl_sock_t' and unused 'get_pem'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6022 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-11 02:03:02 +00:00
Riza Sulistyo 8cefecd714 Re #2147 (misc): Fix failed pjsip-test (transport_loop_test) caused by r6002.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6021 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-31 10:13:40 +00:00
Nanang Izzuddin 61ffb0ddc4 Misc (re #2147): Fixed compile warnings due to unused var/function.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6020 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-31 06:13:09 +00:00
Nanang Izzuddin 4cd8ae3df2 Misc (re #2147): Fixed configure-android script failure to parse NDK version on MacOSX.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6019 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-31 06:08:47 +00:00
Sauw Ming 62fae52a43 Re #2185: Modified the autodetection in configure script to try to compile a sample code instead.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6018 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-31 05:03:21 +00:00
Sauw Ming 2ba08831e3 Re #2206: Fixed incorrect variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6017 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-30 03:32:28 +00:00
Sauw Ming 8def8e58d5 Fixed #2206: Avoid calling SSL_shutdown() in DTLS media transport if handshake isn't completed yet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6016 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-30 03:27:25 +00:00
Sauw Ming 58593ba22c Fixed #2205: Use bound address for outgoing UDP SIP messages
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6015 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-29 08:02:02 +00:00
Sauw Ming d8360bff05 Fixed #2204: Add OpenSSL remote certificate chain info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6014 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-29 03:49:23 +00:00
Sauw Ming f183fc1389 Re #2147 (misc): Fixed assertion in pjmedia test if video is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6013 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 06:03:17 +00:00
Nanang Izzuddin bdd13d3e3a Misc (re #2147): Updated Android pjsua2 sample app: enable SRTP optional mode without requiring SIP TLS transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6012 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 05:21:00 +00:00
Nanang Izzuddin fb6fe27aaf Misc (re #2147): Fix Android pjsua2 sample app: call state text & call button text in call activity not updated accordingly.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6011 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 04:59:45 +00:00
Nanang Izzuddin 43e40d16a4 Misc (re #2147): Fixed various build warnings (when building for Android).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6010 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 04:11:37 +00:00
Riza Sulistyo c217c850f7 Re #2147 (misc): Fix various compilation warnings on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6009 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 15:01:08 +00:00
Sauw Ming 215a173519 Re #2181: Suppressed a couple of compilation warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6008 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 06:34:57 +00:00
Sauw Ming 2bd7b29044 Re #1017: Suppress warning of "enumeration value 'PJ_TURN_TP_UDP' not handled in switch"
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6007 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 06:31:09 +00:00
Sauw Ming d059927e63 Fixed #2203: Failure to set minimum SSL version when OpenSSL 1.1 is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6006 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 03:54:27 +00:00
Riza Sulistyo 4724f14af5 Close #2202: Limit the number of ignored error when receiving RTP/RTCP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6005 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-26 13:18:02 +00:00
Riza Sulistyo 765e804fda Close #1017: TURN TLS transport implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6004 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-24 03:32:17 +00:00
Riza Sulistyo 26d59020b3 Close #2201: Restart UDP transport after replace_udp_socket fail when sending data.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6003 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 17:47:55 +00:00
Riza Sulistyo 7c1f2f277d Close #1019: Support for multiple listeners.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6002 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 17:21:59 +00:00
Riza Sulistyo 2b49e900ca Re #2147 (misc): Avoid swig error caused by pjsua_snd_dev_id enum definition.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6001 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 13:57:48 +00:00
Riza Sulistyo e3d314f7d1 Close #2200: Ignore/discard DNS SRV response with truncated flag set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6000 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 13:42:27 +00:00
Nanang Izzuddin d53bc8244c Re #2179: Fixed linking error when PJSIP_HAS_TLS_TRANSPORT is not defined.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5999 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 09:07:36 +00:00
Sauw Ming ccba81f943 Re #2198: Fixed wrong check that can return both IPv4 and IPv6 addresses
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5998 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 01:18:22 +00:00
Sauw Ming f7d70ae03e Fixed #2134: STUN server resolution failure causes delay
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5997 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-22 00:39:46 +00:00
Nanang Izzuddin aca93961ce Close #2199: Fixed assertion when DNS SRV resolver receives empty record in response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5996 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-21 03:17:11 +00:00
Sauw Ming 6a8a5920b6 Fixed #2198: SIP resolve to return both IPv4 and IPv6 synthesized addresses (if any) for IPv4 address literals.
- Also included in this changeset: ipv6 option of sample pjsua_app will now try IPv6 STUN, bind the account to IPv6 transport and set the IPv6 media



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5995 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-17 09:37:18 +00:00
Nanang Izzuddin 5dfa75be7d Re #2179: Wipe out memory used for storing SSL keys in PJSIP TLS transport and pjsua app. Thanks Peter Koletzki for the feedback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5994 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 09:41:52 +00:00
Nanang Izzuddin 0fb43551c0 Close #2142: Export pjmedia_echo_flag to PJSUA2 SWIG Java interface
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5993 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 06:06:12 +00:00
Nanang Izzuddin f3eac1d578 Re #2181: Fixed undefined reference linking errors when PJSUA_HAS_VIDEO is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5992 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:57:44 +00:00
Nanang Izzuddin 98e035a46e Re #2191: Fixed crash in SIP transport destroy due to bug introduced by r5971, i.e: group lock is set after registering tp to tpmgr, so tpmgr won't call pj_grp_lock_add_ref(), but in unregisteration, group lock is set, so tpmgr will call pj_grp_lock_dec_ref().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5991 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:54:52 +00:00
Nanang Izzuddin 754372cdab Close #2179: Wipe out memory used for storing SSL keys before released.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5990 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:43:01 +00:00
Sauw Ming ef5ac1253f Fixed #2107: Add option to use loopback media transport in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5989 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 00:09:57 +00:00
Nanang Izzuddin 27077f0524 Re #2197: Fixed silly mistake of wrong size param in bzero-ing a var.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5988 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-14 09:43:38 +00:00
Nanang Izzuddin fa6616c43c Close #2197: Support TURN extensions for TCP allocations (RFC 6062).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5987 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-14 09:31:39 +00:00
Sauw Ming 2a8a1ff81f Re #2189: Fixing various bugs:
* assertion: !Endpoint::instance().mediaExists(*this) in Media::registerMediaPort() when using AudioMedia
Sound device is already registered in the conference bridge, while AudioMediaPlayer/Recorder creation function, i.e. pjsua_player_create(), pjsua_playlist_create(), and pjsua_recorder_create() already call pjmedia_conf_add_port(), so mediaExists() will always return TRUE.

* Endpoint.mediaAdd() should check in its own internal list if the media exists, rather than querying pjsua.

* Calling Endpoint::libDestroy() first, then deleting Endpoint will cause crash, since the mutex to remove the medias has been deleted in libDestroy().
The introduction of the mutex is in r5964.

* DevAudioMedia never removes itself from mediaList, potentially causing infinite loop/crash.

* Call medias, i.e. AudioMediaHelper, also never gets removed from mediaList.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5986 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-10 08:27:22 +00:00
Sauw Ming 2e505e6a57 Re #2181: Fixed incorrect index in getAudioMedia() iteration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5985 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-10 08:24:34 +00:00
Nanang Izzuddin bcabd15299 Re #1298: Updated PJSIP* to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5984 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 08:18:18 +00:00
Nanang Izzuddin 2c20c1d391 Re #1298: Updated PJNATH to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5983 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 07:47:39 +00:00
Nanang Izzuddin 64048ef507 Re #1298: Updated PJMEDIA* to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5982 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 07:24:57 +00:00
Nanang Izzuddin 432be93e4d Re #1298: Updated PJLIB-UTIL to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5981 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:54:38 +00:00
Nanang Izzuddin 10e1d23c37 Re #1298: Updated PJLIB to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5980 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:35:41 +00:00
Nanang Izzuddin 7d75682aed Re #1298: Updated PJSUA-LIB to use PJ_ERROR or pjsua_perror when applicable.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5979 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:00:00 +00:00
Sauw Ming 481a9c32d8 Fixed #2196: Assertion due to unset sip error code when media initialization fails during incoming call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5978 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-06 10:55:35 +00:00
Sauw Ming 4673810b64 Fixed #2195: Assertion when receiving more calls than the configured maximum
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5977 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-06 10:44:20 +00:00
Sauw Ming 316c315d97 Fixed #2194: onStreamDestroyed callback is not called upon call disconnection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5976 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-06 10:05:03 +00:00
Riza Sulistyo 1c5e96c7c7 Close #2193: Buffered read data on SSL socket might not immediately get read after handshake is complete.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5975 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-02 10:18:26 +00:00
Riza Sulistyo 65c171f790 Misc (re #2147): Allow application exceptions to be enriched with Error specific information on CSharp binding. Thanks to Jeremy Franzen for the suggestion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5974 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-25 10:22:51 +00:00
Nanang Izzuddin 25076466c8 Fixed #2192: Update dialog local contact for non registering account.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5973 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-25 08:39:49 +00:00
Nanang Izzuddin 0971e7dd7d Re #2181: Implemented video conference APIs for PJSUA2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5972 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 10:49:56 +00:00
Nanang Izzuddin 4ad9acd150 Fixed #2191:
- Stricter double timer entry scheduling prevention.
 - Integrate group lock in SIP transport, e.g: for add/dec ref, for timer scheduling.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5971 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 08:42:45 +00:00
Sauw Ming 70af7c08a5 Fixed #2190: Crash in ioqueue post completion if callback is not set
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5970 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-16 04:08:04 +00:00
Nanang Izzuddin 8fda2f9f36 Close #2189: fixed PJSUA2 thread safety issue in list of objects manipulation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5969 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-15 10:52:16 +00:00
Sauw Ming 9358524737 Fixed #2188: RTCP RR not generated if stream's encoder channel is paused
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5968 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-15 02:53:52 +00:00
Riza Sulistyo 939045ae46 Re #2181: Add vid_conf.h/c to pjmedia project for VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5967 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-11 12:17:14 +00:00
Riza Sulistyo f3aa0eaff2 Re #2180: Added ssl_sock_imp_common.h/c to PJLIB VS2015 project (excluded for build).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5966 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-11 12:15:09 +00:00
Nanang Izzuddin fdc3c5d9be Misc (re #2147): When tracing is enabled, print ALSA error message when opening device failed in device enumeration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5965 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-10 06:32:27 +00:00
Riza Sulistyo 9cabb4ec5f Misc (re #2147): Add lock to prevent race condition when accessing media list.
Thanks to Niclas Larsson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5964 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-08 01:24:10 +00:00
Riza Sulistyo b9f923adfc Misc (re #2147): Enable to change SIP outbound instance id when modifying account.
Thanks to Jure Erznožnik for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5963 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-08 01:18:17 +00:00
Sauw Ming b73c5a8350 Re #2187: Delay the creation of video capture until it is needed
Also in this commit: add PJSUA_LOCK() and UNLOCK() around access of pjsua_vid_win



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5962 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-01 07:28:24 +00:00
Sauw Ming 881f21ea85 Fixed #2187: Avoid starting video capture if the setting vid_out_auto_transmit is false
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5961 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-29 01:52:59 +00:00
Sauw Ming 681033652a Fixed #2186: Enable video stream keep alive mechanism
* Also add video stream port to video conf when call is on local hold in order for video stream to keep sending keep-alive.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5960 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-27 01:53:57 +00:00
Sauw Ming 6814d38f53 Re #2185: Darwin SSL backend
* Security framework availability will be automatically detected for Mac OS and iOS, and if found, Darwin SSL will be the default SSL backend.
* OpenSSL availability will still be checked regardless of the above result, as it may be needed for DTLS.
* Add configure option --disable-darwin-ssl to disable the automatic detection



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5959 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-26 07:25:57 +00:00
Sauw Ming 6fcec7b8eb Re #2185: Add Security framework to ipjsua sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5958 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-25 08:04:15 +00:00
Sauw Ming cff4487def Fixed #2185: Darwin (Mac OS & iOS) native SSL backend
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5957 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-25 01:33:12 +00:00
Nanang Izzuddin f01387d5aa Misc (re #2147): Add info and checks about Extra Audio Device supporting mono channel only.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5956 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-21 08:46:13 +00:00
Nanang Izzuddin 063e244d49 Fix #2184: PJSUA2 cannot switch from null audio device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5955 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-20 03:23:34 +00:00
Nanang Izzuddin 63be4785a5 Fix #2183: Fixed bug of dialog not destroyed on late media scenario: pjsua_call_on_incoming() should decrement dialog session counter when media channel is not initialized.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5954 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-19 08:24:57 +00:00
Sauw Ming 8736f50552 Re #2160: Fixed assertion in pjlib test due to uninitialized ioqueue op keys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5953 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-15 10:22:11 +00:00
Nanang Izzuddin ecdbbe998e Misc (re #2147): Updated SVN property svn:eol-style to native for Java sample app (avoid rejection in merging patch from Linux on Windows).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5952 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-13 11:02:50 +00:00
Nanang Izzuddin c798c7b615 Re #2180: Added ssl_sock_imp_common.h/c to PJLIB MSVC2005 project (excluded for build).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5951 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-12 05:44:14 +00:00
Nanang Izzuddin 68506e2c11 Misc (re #2147): Updated SSL socket test to include host part in HTTPS request URI, otherwise most likely it will get 400 response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5950 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-11 10:38:55 +00:00
Sauw Ming a97f2c453b Fixed #2182: Prevent crash in unpublishing presence when deleting account
Note that this fix only covers the account deletion scenario. It doesn't prevent the race condition between deleting account in publish_cb and accessing the publish session itself, which should be solved using a locking mechanism.

Thanks to Bogdan Bogdan Chifor for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5949 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 09:29:09 +00:00
Sauw Ming 2c8710a584 Re #2181: Fixed assertion in darwin_dev pj_assert(frame->size >= stream->frame_size);
But the problem itself is caused by video port, which passes the wrong frame size when the video capture is passive.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5948 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 09:22:21 +00:00
Nanang Izzuddin 151c0d526a Re #2181: Fixed unreleased pool when disconnecting ports in video conference.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5947 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 07:02:23 +00:00
Sauw Ming 7a070560a2 Re #2147 (misc): Contact params update when modifying account
The current contact params updates are not applied when calling pjsua_call_modify(). Updating contact header can be quite complicated so a simpler workaround is to trigger account registration first (the same solution is used to update force_contact).

Thanks to Lars Olsson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5946 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 05:22:49 +00:00
Nanang Izzuddin fa49fd0872 Re #2181: Fixed assertion due to removing an invalid port from video conference in pjsua_vid_stop_stream().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5945 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 03:22:19 +00:00
Nanang Izzuddin 4d8a81b318 Re #2181: Fixed build error when PJMEDIA_HAS_VIDEO is set to zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5944 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:57:45 +00:00
Sauw Ming 93d1de1092 Re #2147 (misc): missed !VideoToolbox deinit in r5942
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5943 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:57:22 +00:00
Sauw Ming 0261784a9e Re #2147 (misc): Fixed assertion in simpleua sample for not creating event manager.
Also add support for VideoToolbox codec.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5942 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:53:51 +00:00
Sauw Ming fd7a5912ce Re #2180: Suppress warning of unreferenced function parameters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5941 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 07:04:31 +00:00
Sauw Ming 34111553e8 Re #2180: Fixed incorrect early return in pj_ssl_sock_renegotiate()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5940 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:56:39 +00:00
Nanang Izzuddin eafc04d5bf Re #2181: Initial version of video conference implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5939 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:23:02 +00:00
Sauw Ming 6b9212dcb4 Fixed #2180: Refactoring SSL socket backend implementations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5938 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-04 09:47:25 +00:00
Nanang Izzuddin 3feefb6a09 Re #2147: Added logging and explicit SIP error code for assertions in SIP message verification.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5937 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-28 09:09:42 +00:00
Nanang Izzuddin 765535c742 Re #2150: Fixed crash in SIP TLS transport after TCP socket accept error, e.g: after wakeup from background on iOS. Thanks Marcus Froeschl for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5936 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:40:57 +00:00
Nanang Izzuddin 16a91c8740 Close #2178: Added check in get_cn_from_gen_name() for empty general name string input.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5935 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:06:39 +00:00
Nanang Izzuddin b4a85b0509 Re #2176: Removed pop_freelist() + push_freelist() after remove_node() as they are not only unnecessary, they cause problem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5934 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-13 06:51:09 +00:00
Nanang Izzuddin dc56508b63 Re #2176: added timer stress test into pjlib-test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5933 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-13 06:41:34 +00:00
Nanang Izzuddin 906b9a6460 Fixed #2177: Updated configure-android script for NDK r17, r18, r19.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5932 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-11 03:43:51 +00:00
Sauw Ming 5031c72a22 Fixed #2175: Make sure that last ACK has been sent before retransmitting it.
Also update the doc that the callback can now be called more than once.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5931 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-21 08:48:02 +00:00
Sauw Ming 2c62b847f2 Re #2173: Fixed assertion caused by PJMEDIA_SDP_EMISSINGCONN, if incoming INVITE contains unsupported media (such as video when PJSIP is built without video).
The assertion happens in:
pjsip_inv_verify_request3: Assertion `(status=pjmedia_sdp_validate(l_sdp))==PJ_SUCCESS' failed.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5930 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-21 03:56:53 +00:00
Riza Sulistyo 4e965d2ad1 Close #2174: Fix out of bound error when enabling GnuTLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5929 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-09 09:15:11 +00:00
Riza Sulistyo fe7079db9d Close #2173: On PJSUA2, application will not be notified when when SDP nego fails due to unsupported codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5928 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-08 09:43:21 +00:00
Nanang Izzuddin c0687a6c70 Fixed #2172: Avoid double reference counter decrements in timer in the scenario of race condition between pj_timer_heap_cancel() and pj_timer_heap_poll().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5927 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-08 09:07:47 +00:00
Sauw Ming cfd58588f6 Re #2147 (misc): set wholeMsg string of SipTxData to the whole message instead of the whole buffer.
Thanks to Michael Loeffler for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5926 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-03 00:56:58 +00:00
Nanang Izzuddin 8c76e17145 Close #2171:
- Apply returned frame quality filter in OpenH264 decoder (drop the frame if decoder returns dsRefLost dsNoParamSets, dsDepLayerLost).
 - Only publish keyframe missing event when decoder returns non-dsErrorFree (was always publishing the event when no frame is returned, while decoder may return dsErrorFree and no frame returned, e.g: when decoding parameter sets).
 - Added a bit more logs for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5925 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-17 03:46:35 +00:00
Riza Sulistyo f56014a118 Re #2147 (misc): Include unicode_win32.c on the build configuration for windows (mingw). Without it, the build will fail when enabling PJMEDIA_WMME_DEV_USE_MMDEVICE_API. Thanks to Niclas Larsson for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5924 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 10:03:36 +00:00
Nanang Izzuddin 7fdb4bf16d Re #2168:
- Added a new PJSUA callback on_media_event().
 - Added audio device error handling into PJSUA2.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5923 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 06:57:23 +00:00
Riza Sulistyo 8c190227f5 Close #2170: When using pjsua2 API, Re-INVITE with no SDP will be responded with 488 response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5922 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 15:36:17 +00:00
Riza Sulistyo df4f51bab1 Close #2169: Update invite options when receiving INVITE provisional response with Allow UPDATE header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5921 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 13:50:22 +00:00
Nanang Izzuddin eb94374bc8 Close #2168: Added media event for audio device error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5920 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 07:16:46 +00:00
Sauw Ming 3a633fecc0 Fixed #2166: Possible buffer overread if RTCP packet length is invalid
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5919 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-04 02:25:52 +00:00
Sauw Ming aef92670e1 Fixed #2165: Support video only call in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5918 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-04 02:16:47 +00:00
Sauw Ming cc44fb2875 Fixed #2164: Subscription may get terminated when NOTIFY is challenged
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5917 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-28 04:01:28 +00:00
Sauw Ming 12669335c6 Re #2147 (misc): Fixed incorrect typecast in Speex resampler. Thanks to Sebastian Marek for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5916 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-26 00:57:54 +00:00
Nanang Izzuddin 4957180b34 Misc (re #2147): Removed 'experimental' word for Speex resampling.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5915 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-23 10:06:51 +00:00
Nanang Izzuddin e18f103391 Misc (re #2147): Invalid media direction (dir=NONE) when receiving first video event PJMEDIA_EVENT_FMT_CHANGED (thanks Giorgio Alfarano for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5914 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 10:11:25 +00:00
Nanang Izzuddin f43b6cb0aa Fix #2163:
- Frame rate calculation is now done using temporary variable, instead of using stream decoding channel state directly.
 - Added condition for applying calculated frame rate: it must be greater than zero.
 - Fixed frame rate comparison to use float, was using integer which might get overflow on 32 bit integer platforms.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5913 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 03:33:42 +00:00
Sauw Ming 673948c847 Re #2159: Replace std::mutex with PJSIP's own pj_mutex_t, since std::mutex is only available starting C++11
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5912 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 02:39:29 +00:00
Riza Sulistyo cdbb718e10 Close #2162: If transport restart fail, don't proceed with updating contact on IP change process.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5911 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 10:08:04 +00:00
Nanang Izzuddin 627f5d8b8c Misc (re #2147): pjmedia_transport_media_stop() should not be called before pjmedia_stream_destroy(), otherwise RTCP BYE, DTMF 'End' flag, etc cannot be sent (thanks Lauri Vänskä for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5910 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 08:39:45 +00:00
Riza Sulistyo 5c97c41263 Close #2161: Avoid deadlock triggered by incoming message when transport is being shutdown.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5909 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 08:22:34 +00:00
Sauw Ming 0d71a76ab2 Re #2147 (misc): Add pjmedia_transport_media_stop() to streamutil sample app, for good practice since we now require media transport to be started since #2097
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5908 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-07 23:28:36 +00:00
Sauw Ming c80b56d1ef Fixed #2160: stuck issue in ioqueue when detaching UDP media transport
- Fixed transport_udp so it won't call another read operation when being stopped.
 - Add robustness checks (assertion) in ioqueue recv, recvfrom, and accept to prevent the same op key being used twice. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5907 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-07 04:34:01 +00:00
Sauw Ming 8fdc6ca3b3 Re #2147 (misc): Put back the printing of contact_rewrite_method, which is missing due to r5833
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5906 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-06 01:30:56 +00:00
Sauw Ming 1b03b7ae74 Re #2147 (misc): Fixed assertion in streamutil sample for not creating event manager
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5905 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 09:36:47 +00:00
Sauw Ming 3b60912a4a Fixed #2159: Add synchronization for Endpoint::libRegisterThread()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5904 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 02:40:54 +00:00
Sauw Ming ac7e0e618f Re #2157: Clear the callback rtp_cb2() when detaching transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5903 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 00:55:21 +00:00
Sauw Ming 91358a9135 Re #2147 (misc): Removed null video device declaration, which has no implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5902 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 00:47:05 +00:00
Nanang Izzuddin 2bdc03bf22 Misc (re #2147): Assertion in pj_sockaddr_cp() when pjmedia_transport_attach() is called with rem_rtcp zero initialized (thanks Lauri Vänskä for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5901 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-02 06:45:58 +00:00
Sauw Ming 0f846fedff Re #2147 (misc): Fixed account modification lock codec setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5900 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-18 05:32:22 +00:00
Nanang Izzuddin 47eec2b367 Close #2158:
- Added OnCallTransferRequestParam.newCall to allow application to instantiate a new Call for the new outgoing call in transfer scenario.
 - Also added OnCallReplacedParam.newCall mainly for informational purpose (that app should instantiate new Call for replace scenario).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5899 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-17 04:38:39 +00:00
Sauw Ming 2de667c542 Re #2157: Minor change: prioritize rtp_cb2() and add more robustness
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5898 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-17 00:52:26 +00:00
Sauw Ming 1b030ecdb7 Fixed #2157: Update media transport adapter sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5897 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-16 12:03:21 +00:00
Nanang Izzuddin c468861746 Fix #2156: Fixed object slicing issue in AudioDevInfo/VideoDevInfo by replacing MediaFormatVector with MediaFormatVideoVector and MediaFormatAudioVector.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5896 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-08 05:04:13 +00:00
Sauw Ming 6349c51844 Re #2147 (misc): Change Android libpjsua2.so target directory according to the target architecture
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5895 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-03 02:38:26 +00:00
Riza Sulistyo aedbbbbdb9 Re #2147 (misc): Call pj_bzero() to frame_out to avoid undefined value for
bit_info. Thanks to Sai Krishna for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5894 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-02 07:13:16 +00:00
Sauw Ming 78f35d34ff Re #2155: Fixed incorrect parameter passed to pjsua_call_cleanup_flag()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5893 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 10:29:37 +00:00
Sauw Ming 36784ecc34 Fixed #2155: Cleanup call setting flag before sending reinvite on IP change
This changeset also clears PJSUA_CALL_UNHOLD flag after calling pjsua_call_set_hold/hold2()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5892 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 05:58:47 +00:00
Sauw Ming 42e5ee52e1 Re #2147 (misc): Fixed build error of undefined reference to `pjmedia_srtp_enum_crypto' if PJMEDIA_HAS_SRTP is disabled.
Thanks to Alexei Gradinari for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5891 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 00:56:51 +00:00
Sauw Ming 1dc36f9a74 Re #2147 (misc): Add assertion in pjmedia_port_info_init() to prevent division by zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5890 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-24 02:45:20 +00:00
Nanang Izzuddin 5a4bab3e56 Re #2150: Added native SSL error code in SIP TLS accept failure callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5889 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-21 08:29:12 +00:00
Riza Sulistyo 2814a6f384 Re #2150: Add local address to pjsip_tls_on_accept_fail_param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5888 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-19 10:43:00 +00:00
Nanang Izzuddin b02d7b6b01 Close #2152: Updated video stream to delay video frame decoding, the minimum delay is configurable via PJMEDIA_VID_STREAM_DECODE_MIN_DELAY_MSEC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5887 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-19 08:26:41 +00:00
Riza Sulistyo 9968e46140 Close #2151: Call tp_drop_data_cb() when there is PJSIP_EMISSINGHDR or PJSIP_EINVALIDSTATUS error on incoming message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5886 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:45:47 +00:00
Riza Sulistyo e5bc0e68b9 Close #2150: Add new callback to notify when accept operation fails on TLS
listener.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5885 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:07:50 +00:00
Sauw Ming 99db1094f6 Fixed #2149: Add option to disable transport connection reuse via the setting pjsip_tpselector.disable_connection_reuse
Thanks to Joshua Colp for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5884 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-14 01:27:32 +00:00
Sauw Ming cb1f07cbac Fixed #2148: Add parsing support for the OAuth 2.0 authentication mechanism
Thanks to Joshua Colp for the patch submission.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5883 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-07 02:56:38 +00:00
Sauw Ming a0bf9103e8 Re #2147 (misc): Fix incorrect call state info on incoming call in PJSUA2
In PJSUA2, due to ticket #1916, on_incoming_call() can be called earlier, during on_create_media_transport().

At this time, call->inv->state is still INV_STATE_NULL (instead of INV_STATE_INCOMING).

This patch only fixes the call info, but doesn't change the invite state itself.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5882 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-06 10:20:24 +00:00
Riza Sulistyo ea92c3b7d6 Changed version to 2.8-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5881 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-05 09:07:16 +00:00
Riza Sulistyo 67a79f0375 Changed version to 2.8
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5879 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-05 03:40:41 +00:00
Riza Sulistyo ec69079d6d Close #2145: Don't rearrange media when sending re-INVITE with
PJSUA_CALL_REINIT_MEDIA.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5878 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 15:12:58 +00:00
Riza Sulistyo cb888bda8e Re #2049 (misc): Add local RTP/RTCP address information to MediaTransportInfo.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5877 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 14:57:07 +00:00
Sauw Ming 8267dc98f9 Re #2100: Fixed the incorrect string comparisons
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5876 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 02:25:34 +00:00
Sauw Ming d68a5a9753 Re #2100: Fix the optimization part of r5872, which didn't work since we don't preserve the old strings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5875 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 02:16:02 +00:00
Sauw Ming fdca1bd954 Re #2059 (misc): re r5873, add more comment in the code.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5874 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:45:04 +00:00
Sauw Ming fdcece45bf Re #2059 (misc): Add log for error info when Darwin capture session fails to start running or encounters an error during runtime.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5873 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:36:46 +00:00
Sauw Ming 6d35e02662 Re #2100: Fixed duplication of crypto names and keys to use pj_strdup(). Otherwise, when the account/global config's input strings are modified (or deallocated) after being passed to PJSIP, then the crypto name matching will fail and we will generate error: PJMEDIA_SRTP_ENOTSUPCRYPTO
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5872 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:13:40 +00:00
Nanang Izzuddin 94fe7a3a2c Fix #2144: Updated PJSUA media update to work on call->media directly (previously on call->media_prov). Note that at this point (i.e: after SDP nego), PJSUA won't revert media state (back to before SDP nego) on any media update failure.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5871 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-31 03:15:23 +00:00
Riza Sulistyo 0d6e7d6037 Re #2141: Fix variable declaration misplacement.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5870 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 07:05:43 +00:00
Riza Sulistyo 2c3e39b2f5 Close #2141: Add TCP initial receive timeout for server connection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5869 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 05:42:25 +00:00
Sauw Ming 7db2028ec2 Re #2103:
A couple of improvements:
- Now initialize both video port's renderer AND capture buffer
- Support RGB format as well.

Known limitation: YUV currently only supports I420 and YV12
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5868 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 02:00:05 +00:00
Sauw Ming 657df2b09e Re #2103: Darwin's capture device is passive, thus the video port's clock will fetch the frames much earlier than when the device is ready, getting zero frames and resulting in green screen on the remote side.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5867 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:48:03 +00:00
Sauw Ming 34de9fcee0 Re #2103: Move the black screen initialization of the renderer to pjmedia_vid_port_start() instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5866 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:45:13 +00:00
Sauw Ming ec44810dbd Fixed #2140: Timestamp clock issue when device is asleep in iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5865 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:42:29 +00:00
Sauw Ming 4fcfc942d8 Fixed #2139: Fix potentially incorrect buffer allocation for video port renderer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5864 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-21 08:06:43 +00:00
Nanang Izzuddin ee896a31ad Misc (re #2059): Fixed crash in pjsua2 sample app (perhaps due to access to invalid MyCall instance).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5863 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-21 07:23:25 +00:00
Nanang Izzuddin f654c5aa08 Close #2103: Initiate video port frame buffer with black for I420 & YV12 formats.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5862 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-20 05:30:01 +00:00
Nanang Izzuddin 62927ef6d3 Fix #2138:
- Updated ICE STUN & host candidates generation to be more forgiving on errors, i.e: continue gathering candidates using any available data instead of returning error.
 - Added more logs for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5861 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:56:52 +00:00
Nanang Izzuddin d641faa661 Re #2096: Fixed some compile warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5860 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:39:36 +00:00
Nanang Izzuddin 3aa78d85f3 Re #2135:
- Enabled DTLS in automated tests on desktop platforms.
 - Added some test variants, e.g: 64 bit mobile platforms, video, IPv6, in automated tests.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5859 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:37:29 +00:00
Nanang Izzuddin 5c8b34c348 Re #2135: Disabled a couple of tests in tsx_destroy_test() that rely on TCP connect timeout, as the timeout delay may vary among OSes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5858 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 01:00:04 +00:00
Nanang Izzuddin 893cd9d20b Re #2096: Fixed bug of r5855, SRTP encode_sdp() should not reset bypass_srtp flag in reoffer/answer scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5857 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 10:52:28 +00:00
Nanang Izzuddin 833fa97e90 Misc (re #2059): False error/exception returned by IP change Endpoint::handleIpChange() on Android, it returns error "Address already in use" immediately while a retry attempt is scheduled (i.e: param.restartLisDelay is set to non-zero). Thanks Christian Scheid for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5856 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 03:00:18 +00:00
Nanang Izzuddin 952ddfb355 Re #2096: Answer with one SRTP keying only when offered both (thanks Wei-Wei for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5855 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 02:44:53 +00:00
Riza Sulistyo 8f4661df4c Re #2070: Missed silly mistake on log formatting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5854 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-06 04:14:06 +00:00
Sauw Ming 808e9375ae Re #2096: re r5852, fixed assertion in pj_sockaddr_cp() because the address can actually be zero if we haven't received any packets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5853 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-03 09:21:51 +00:00
Sauw Ming b6721dc614 Re #2096: DTLS updates
- Fix assertion when DTLS tries to attach transport, but the ICE transport's source RTP address hasn't been updated.
- Fix DTLS transport attachment in dtls_media_start() which misses rtcp-mux checking, causing rtcp-mux to be disabled.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5852 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-03 02:33:28 +00:00
Riza Sulistyo 6f1f14dd3b Fixed #2137: Race condition in 183 re-transmission can result in a deadlock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5851 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 09:22:26 +00:00
Sauw Ming fd5674b334 Fixed #2136: Increase default ICE password length as mandated by the RFC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5850 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 08:34:19 +00:00
Sauw Ming 3ca4d3c731 Re #2091: Fixed crash in pj_ioqueue_poll() when iterating keys with closed sockets, which because of r5778, is now set to PJ_INVALID_SOCKET
Note: the crash will happen in PJ_FD_ISSET(h->fd, ...)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5849 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 08:05:16 +00:00
Nanang Izzuddin 87862fcd81 Re #2135: Updated 'pjsip-test' to adapt to the recent library changes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5848 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-30 02:32:25 +00:00
Nanang Izzuddin 2d8776016d Re #2096:
- Updated DTLS-SRTP to ignore stray packet after DTLS nego has been completed.
 - Added few debugging logs.
 - Fixed false SSL error.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5847 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-27 06:16:26 +00:00
Sauw Ming 1db5b2167d Re #2059 (misc): List ALSA audio device even if it fails to open
If an ALSA audio device cannot be opened for recording and playback, it may mean that they are temporarily busy (such as currently being used by another app), so we should still list it.

Thanks to Tobias Schneider for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5846 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-27 02:58:41 +00:00
Nanang Izzuddin 5852395694 Re #2096:
- Added new error code for sending RTP/RTCP failure when DTLS-SRTP nego is in progress.
 - When sending RTP/RTCP fails, only print error message once for consecutive same errors.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5845 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 07:19:39 +00:00
Nanang Izzuddin 4635f7ab51 Close #2135: Update some failing scripts to skip TCP transport in pjsua app instantiation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5844 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:37:08 +00:00
Sauw Ming e98553fbcb Re #2126: Create thread when creating the event manager, which is required for video. Also add more doc about this in pjmedia_event_mgr.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5843 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:20:03 +00:00
Sauw Ming 8caccfe4f2 Re #2126: re 5841: move the event manager creation and destruction in pjsua_media instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5842 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:05:10 +00:00
Sauw Ming 1070fd13ea Re #2126: re: r5825, create pjmedia_event_mgr when initializing audio subsystem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5841 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 02:50:06 +00:00
Sauw Ming ce2667ccd8 Re #2133: Add log when skipping the IPv4 STUN resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5840 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 00:15:17 +00:00
Sauw Ming 71392a7ddc Fixed #2133: Skip IPv4 STUN resolution if account is using NAT64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5839 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-25 23:56:39 +00:00
Nanang Izzuddin 5ddf559756 Close #2132: Updated pjsua_acc_find_for_incoming() to use weighted score algo in selecting account, where transport type match has higher priority.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5838 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-25 09:58:37 +00:00
Sauw Ming e79dfe5c05 Re #2126: Fixed missing conversion of rtcpFbConfig from and to pjsua account config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5837 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-24 00:29:48 +00:00
Riza Sulistyo 251afd83dd Re #484: Fix compile warning of unused method.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5836 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 11:04:49 +00:00
Nanang Izzuddin 83e6b40788 Re #2129: Fixed compile warning on iOS of 'unused function grp_lock_dec_ref_dump()' when PJ_GRP_LOCK_DEBUG is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5835 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 10:08:53 +00:00
Riza Sulistyo 070dece2e9 Close #2036: Support DTMF via SIP INFO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5834 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:32:54 +00:00
Riza Sulistyo 696a919a31 Close #2070: Print IPv6 addresses with brackets.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5833 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:15:08 +00:00
Riza Sulistyo 8dcaa4496d Re #2126: Add rtcp_fb.h and rtcp_fb.c to pjmedia project file for VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5832 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:03:57 +00:00
Sauw Ming 2cfde147cc Fixed #2131: Incorrect Opus fmtp settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5831 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 06:35:57 +00:00
Nanang Izzuddin ad7d4fe0d4 Fixed #2130: Fixed issue of re-INVITE not sent for non-registering accounts on IP change scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5830 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 02:19:22 +00:00
Nanang Izzuddin 1ed75a4aa6 Fix #2129: Updated pj_grp_lock_dump() to avoid infinite recursion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5829 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-20 07:21:32 +00:00
Sauw Ming f5b93b5f5a Fixed #2128: Add feature to allow responding incoming INVITE/re-INVITE asynchronously and set the SDP answer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5828 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-20 02:19:41 +00:00
Nanang Izzuddin d0b08f08ae Re #2126: Added rtcp_fb.c to Makefile and fixed compile warnings on gcc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5827 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-19 07:25:17 +00:00
Nanang Izzuddin c31c095c49 Close #2127: Replaced DNS resolver mutex with group lock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5826 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 10:49:57 +00:00
Nanang Izzuddin f61de805c8 Re #2126: Implemented incoming RTCP-FB handling, i.e: parse and notify application via PJMEDIA event framework.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5825 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 08:11:17 +00:00
Nanang Izzuddin 4028a34cd9 Re #2096: Fixed silly mistake of missing a comma in r5823.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5824 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-16 08:04:02 +00:00
Nanang Izzuddin 8ebab77c7f Re #2096:
- For better interoperability, check remote support for DTLS-SRTP by inspecting SDP a=fingerprint availability instead of UDP/TLS/SRTP/SAVP.
 - Bailout DTLS-SRTP when SDP a=fingerprint is not available.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5823 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-16 07:35:52 +00:00
Riza Sulistyo b34ad8be7f Close #2038: Review pjsua app sample about pjsua_call_info usage.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5822 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-15 14:29:50 +00:00
Riza Sulistyo 6844393258 Close #484: Allow to use binary certificate in TLS transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5821 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-15 14:09:23 +00:00
Nanang Izzuddin 8a883d4ffb Close #2126: Initial implementation of RTCP Feedback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5820 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-12 08:22:31 +00:00
Sauw Ming f4ef7f8649 Re #2059 (misc): Link AVFoundation framework for iOS build since it's required for using AVAudioSession.
Thanks to Sebastian Marek for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5819 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-05 11:16:11 +00:00
Sauw Ming edf6b82fc1 Re #2059 (misc): Fixed typo in json.c (should be semicolon instead of comma).
Thanks to Sebastian Marek for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5818 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-03 09:31:27 +00:00
Sauw Ming 5e4bb6aac1 Re #2059 (misc): Add missing fields when exporting UaConfig to pjsua_config.
Thanks to Imad Khazali for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5817 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-03 03:23:05 +00:00
Sauw Ming 39062b691e Fixed #2125: Crash when hanging up call if call invite hasn't been created
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5816 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-03 03:13:28 +00:00
Nanang Izzuddin d71ccf5445 Misc (re #2059): Fixed compile error on MinGW "Including <winsock2.h> after <winsock.h> is unsupported" (thanks Thibault Groisil for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5815 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-29 02:49:04 +00:00
Nanang Izzuddin f31f77289b Misc (re #2059): Updated configure script to:
- make sure that C++ compiler is available, and
 - disable ALSA when ALSA development library is not found.

Thanks Alexander Traud for the feedbacks.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5814 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-26 07:08:24 +00:00
Nanang Izzuddin 147c1021fd Misc (re #2059): Fixed various compile warnings on GCC 8.1 (thanks Alexander Traud for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5813 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-25 07:56:57 +00:00
Nanang Izzuddin 6a39a12f3d Close #2123: Follow SDP answer changes in 18x & 2xx responses on non-forking scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5812 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-25 02:58:18 +00:00
Riza Sulistyo 1a7c9f8882 Re #2059 (misc): Fixed some error on transport_srtp.c after #2097 + #2096.
- Fixed nullptr exception, because opt pointer might not be set.
- Remove assertion to check pool and sdp in pjmedia_transport_media_start().
Thanks to Ciro Ferraiuolo for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5811 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-22 17:13:02 +00:00
Nanang Izzuddin 8bf2192722 Fixed #2122: Reorder supported format list in Android camera to have I420 before YV12 & NV21.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5810 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-22 08:22:01 +00:00
Nanang Izzuddin a19b7b1a6a Misc (re #2059): Removed double space between 'digest' and 'realm=' digest challenge, reported that an old device got problem with it (thanks Martin Gross for the report and the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5809 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-22 03:43:17 +00:00
Nanang Izzuddin b992afa503 Misc (re #2059): Fixed pjsua.py: inconsistent use of tabs and spaces in indentation (thanks Alexander Traud for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5808 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-21 04:15:24 +00:00
Nanang Izzuddin a388bc5d64 Fix #2121: Initialize basic type data member of PJSUA2/C++ objects in its constructor.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5807 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-20 07:56:45 +00:00
Nanang Izzuddin c6829d2ba5 Fix #2120:
- Adjust local SE to comply to remote Min-SE when incoming request has Min-SE header but no SE header.
 - Handle the case of receiving 422 response for subsequent INVITE or UPDATE.
 - Add best effort to avoid INVITE/UPDATE req + 422 resp loop.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5806 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-19 10:00:33 +00:00
Riza Sulistyo 5380cb0f2a Re #2119 (closed): Don't raise assert when receiving an incoming call with no
pjsua account available.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5805 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-13 16:58:49 +00:00
Riza Sulistyo 87a809c03d Re #2059 (misc): Patch to build Arch Linux on ARMv7 (e.g: Raspberry Pi).
Thanks to Attila Bogár for the patch.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5804 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-13 16:27:32 +00:00
Nanang Izzuddin 94f40384f8 Fixed #2118:
- Stream buffer calculation is now based on maximum bitrate and maximum receiving frame size.
 - Added buffer size check when getting frame from jitter buffer, pjmedia_jbuf_get_frame*() specification has been updated that 'size' param is now input and output (was output only).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5803 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-06 08:38:29 +00:00
Riza Sulistyo 1e61058903 Re #2059 (misc): Don't build swig_java_pjsua2 project on VS2015 by default.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5802 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-04 05:45:23 +00:00
Nanang Izzuddin 6b3ff1b7d6 Fix #2117: Add PJSUA2 API Account::shutdown() to avoid race condition between Account derived class destructor and onRegState callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5801 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-31 09:58:00 +00:00
Nanang Izzuddin 20a3afe177 Re #2087: Updated AccountMediaConfig::rtcpMuxEnabled type from pj_bool_t to bool.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5800 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-31 06:57:54 +00:00
Nanang Izzuddin ba59059944 Re #2089:
- Set default max Opus RX frame length, i.e: param.info.max_rx_frame_size, to 1275. This is to avoid issue of truncated frame in jitter buffer when incoming frame length gets increased (after remote Opus encoder changes Opus params on the fly, e.g: ptime, VBR/CBR, sampling rate). Thanks Marcus Froeschl for the report, the investigation, and the solution.
 - Fixed pjmedia_codec_opus_set_default_param() to initiate codec param with current default settings.
 - Fixed some compile warnings.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5799 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-30 07:41:23 +00:00
Riza Sulistyo 18f5bc2535 Fix #2116: iLBC using memcpy instead of memmove for overlapping memory.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5798 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-29 09:02:51 +00:00
Riza Sulistyo 09a206cfbb Re #2059 (misc):
- Fix warning when using LibreSSL.
- Fix error build when using OpenSSL with './config no-dh' option.
- Fix error build when using OpenSSL with './config no-deprecated' option.
- Modification to r5787.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5797 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-29 03:07:05 +00:00
Riza Sulistyo 90ecb626c8 Re #2059 (misc): Define missing CPPFLAGS in the aconfigure. Thanks to Alexander
Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5796 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-29 02:49:32 +00:00
Sauw Ming 36f1782ec8 Fixed #2115: Deadlock between PJSUA LOCK and conference mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5795 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-23 01:33:00 +00:00
Nanang Izzuddin 311d70ad13 Re #2096:
- Fixed memory leak due to not destroyed DTLS-SRTP keying (when it is not active).
 - DTLS-SRTP must not destroy itself, keying destroy must be initiated by SRTP.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5794 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-18 07:12:41 +00:00
Sauw Ming 2eaf3e7653 Fixed #2114: Reset VideoToolbox on iOS when app switches from background to active
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5793 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-18 02:29:04 +00:00
Sauw Ming a7cea667a3 Closed #2113: Implement conference signal level adjustment for a specific connection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5792 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-15 08:23:44 +00:00
Sauw Ming d44bf2999a Re #2059 (misc): Related to #2031. Add compile-time config for L16 48KHz.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5791 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-14 01:24:43 +00:00
Nanang Izzuddin de3a19fa3d Re #2087: Fixed compile error on iOS target: undeclared identifier 'pjmedia_rtp_hdr'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5790 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-10 08:50:51 +00:00
Nanang Izzuddin 3d718197d7 Misc (re #2059): Frame timestamp not set in get_frame_from_buffer() (thanks Giorgio Alfarano for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5789 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-10 04:01:13 +00:00
Sauw Ming ab6022bae3 Fixed #2087: Support for RTP and RTCP multiplexing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5788 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-09 06:58:48 +00:00
Riza Sulistyo 2ea2222b16 Fixed #2112: pjsip initializes EECDH incorrectly when linked with OpenSSL
1.1.0x.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5787 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-07 15:13:49 +00:00
Sauw Ming 72aee8feda Fixed #2111: Add compile-time setting to specify DTMF duration in ms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5786 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-24 05:27:57 +00:00
Sauw Ming 469fffc0de Fixed #2110: Incorrect DTMF duration/timestamp for codecs with RTP timestamp unit not using actual sampling rate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5785 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-23 09:30:55 +00:00
Nanang Izzuddin ae23a33172 Re #2078: Bind local account to the specified transport (thanks Kyle Kurz for the report and the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5784 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-20 07:45:19 +00:00
Nanang Izzuddin 852b4f0273 Re #2096: Start UDP transport earlier to allow early DTLS-SRTP nego.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5783 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-18 07:45:46 +00:00
Nanang Izzuddin 2eb03533a1 Re #2096: added log about crypto setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5782 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-18 03:05:59 +00:00
Nanang Izzuddin 7cdd970880 Re #2096:
- Fixed DTLS-SRTP issues with AEAD_AES_256_GCM crypto, e.g: material buffer length too short, silly mistake of missing comma in PJSIP-OpenSSL crypto map.
 - Fixed SRTP error PJMEDIA_SRTP_ESDPREQCRYPTO when crypto count is set to zero and SRTP is in mandatory mode.
 - Fixed SRTP transport attach where stream RTP/RTCP reception callbacks may be overriden by DTLS-SRTP.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5781 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-17 10:52:33 +00:00
Riza Sulistyo 2517f1e5ec Re #2096: When checking hash algo, don't use case sensitive comparision.
Thanks to Christian Scheid for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5780 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-12 00:48:20 +00:00
Riza Sulistyo 1d030de05f Re #2059 (misc): Fix some warnings related to use of external Portaudio.
Thanks to Alexander Traud for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5779 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-09 12:30:48 +00:00
Sauw Ming 16b8584f7d Re #2091:
* Fix possible multiple socket closes and querying already-closed sockets.
* Also prevent possible exception if replace_udp_sock() fails.
If replace_udp_sock() fails, then key->fd will have already been closed. So when calling pj_ioqueue_unregister(key), it will attempt to close the socket again. This may (but not always) result in an exception, which seems to happen when the socket descriptor has been reused by another app.

Explanation: EXC_GUARD exception happens when you try to close a file descriptor that you don't own.

Stack trace:
Exception Type:  EXC_GUARD
Exception Subtype: GUARD_TYPE_FD
Exception Message: CLOSE on file descriptor 11 (guarded with 0x08fd4dbfade2dead)
Exception Note:  SIMULATED (this is NOT a crash) requested by (null)
Triggered by Thread:  7

Thread 7 Crashed:
0   libsystem_kernel.dylib          0x0000000183b09224 close + 8
1   0x00000001031b5b58 pj_sock_close + 12
2   0x00000001031b1d58 pj_ioqueue_unregister + 120
3   0x000000010313b018 udp_destroy + 44
4   0x0000000103138bf8 destroy_transport + 220
5   0x000000010313942c pjsip_tpmgr_destroy + 132
6   0x0000000103133a40 pjsip_endpt_destroy + 244
7   0x000000010315a1b8 pjsua_destroy2 + 2640



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5778 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-06 06:11:36 +00:00
Sauw Ming e82c5e9a95 Re #2059 (misc):
- Allow USE_PYTHON3 to be obtained from environment variable.
- Change PYTHON_EXE. Reasons:
* The platform Arch Linux defaults to Python 3 already. Therefore, when /usr/bin/python is called, it is not Python 2.7 but Python 3.6.
* The platform NetBSD and Gentoo Linux does not offer /usr/bin/python3 but only /usr/bin/python3.6.

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5777 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-06 06:07:32 +00:00
Sauw Ming c954c262bb Re #2059 (misc): Replace the warning text so it won't conflict with C compiler warning message.
Also revert accidental local modification caused by r5767.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5776 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-06 00:52:35 +00:00
Sauw Ming 1be0d4b228 Re #2100: Fixed SrtpCrypto vector definition
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5775 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 05:02:23 +00:00
Sauw Ming 5db5b68e19 Fixed #2108: Fixed RTP socket to bind to any available port if port is zero
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5774 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 05:01:20 +00:00
Sauw Ming 8601a535eb Re #2059 (misc): Comment unused const to prevent compiler warning
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5773 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 04:05:41 +00:00
Sauw Ming ec76b5aa04 Re #2059 (misc): Remove warning of unused functions if no audio codecs is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5772 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 00:57:44 +00:00
Sauw Ming 097830015d Re #2059 (misc): Fixed "warnings: deleting object of polymorphic class type 'Base' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]"
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5771 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 00:46:36 +00:00
Sauw Ming ebebac11ec Re #2059 (misc): Removed warning of unused variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5770 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 06:34:33 +00:00
Sauw Ming 970752f845 Re #2091: Removed warning of unused function
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5769 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 06:25:54 +00:00
Sauw Ming bdcb3877ff Re #2074: Remove warning of unused functions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5768 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 06:23:22 +00:00
Sauw Ming bd4e680cd6 Re #2059 (misc): Replace the warning text so it won't conflict with C compiler warning message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5767 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 06:18:09 +00:00
Sauw Ming 1519ac1bdc Fixed #2106: Fixed SID counter for AMR-WB
Thanks to Alexander Traud for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5766 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 05:53:37 +00:00
Riza Sulistyo 606dffca8f Re #2104: Make sure that STUN session is destroyed and prevent new timer for
STUN destruction on pjsua_destroy2().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5765 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 05:43:58 +00:00
Sauw Ming 3e7ac78d81 Re #2059 (misc): Fixed incorrect assertion in pjmedia stream
Thanks to Vyacheslav Yamont for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5764 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 05:03:50 +00:00
Sauw Ming e483bf4605 Re #2059 (misc): Remove -Wunused-but-set-variable in Python SIP module.
Thanks to Alexander Traud for the patch.
Note that the patch is a contribution and the module itself has been deprecated and will no longer be maintained (https://trac.pjsip.org/repos/wiki/Python_SIP/Build_Install).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5763 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 05:01:41 +00:00
Riza Sulistyo 2c56ebe121 Fixed #2041: Prevent double free on Failed STUN resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5762 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 02:53:48 +00:00
Riza Sulistyo 111322c0e1 Re #2059 (misc): Don't include test app (exe) when building for Android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5761 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-27 05:35:03 +00:00
Riza Sulistyo 173b0b5171 Re #2059 (misc): Add swig_java_pjsua2 project files to build pjsua2 java binding using Visual Studio 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5760 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-26 11:41:03 +00:00
Nanang Izzuddin 547d80f6d8 Fixed #2102: Added check whether a transaction is already destroyed in the transaction timer callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5759 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-26 10:41:05 +00:00
Nanang Izzuddin 8dc264454d Close #2101:
- set atomic's mutex to NULL in atomic destroy
 - added few sanity checks to the atomic functions.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5758 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-26 10:33:50 +00:00
Sauw Ming cea6909212 Re #2059: Fixed the ordering of CXXFLAGS to prevent build issue on Android, such as below:
In file included from /android-ndk-r15c/platforms/android-15/arch-arm/usr/include/linux/posix_types.h:41:0,
                 from /android-ndk-r15c/platforms/android-15/arch-arm/usr/include/sys/types.h:37,
                 from /android-ndk-r15c/platforms/android-15/arch-arm/usr/include/stdio.h:50,
                 from ../../pjlib/include/pj/compat/string.h:39,
                 from ../../pjlib/include/pj/string.h:29,
                 from ../include/pjmedia/frame.h:28,
                 from ../include/pjmedia/port.h:30,
                 from ../include/pjmedia/codec.h:29,
                 from ../include/pjmedia-codec/types.h:29,
                 from ../include/pjmedia-codec/openh264.h:22,
                 from ../src/pjmedia-codec/openh264.cpp:19:
/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi/asm/posix_types.h:33:37: fatal error: asm-generic/posix_types.h: No such file or directory
 #include <asm-generic/posix_types.h>



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5757 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-19 00:26:55 +00:00
Sauw Ming 17d09ee571 Re #2059: Allow multiple codecs in SDP answer when creating SDP neg with remote offer
Thanks to Alexey Ermoshin for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5756 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-16 07:54:41 +00:00
Nanang Izzuddin 922b4e2ed6 Close #2100:
- Added new APIs:
   * PJMEDIA: pjmedia_srtp_enum_crypto(), pjmedia_srtp_enum_keying()
   * PJSUA: pjsua_config.srtp_opt, pjsua_acc_config.srtp_opt, pjsua_srtp_opt_default()
   * PJSUA2: AccountMediaConfig::srtpOpt, Endpoint::srtpCryptoEnum()
 - Deprecated PJSUA callback on_create_media_transport_srtp() (not removed yet, just warnings).
 - Slightly refactored SRTP code:
   * Fixed potential issue with on_create_media_transport_srtp(), some PJSUA internal values in pjmedia_srtp_setting may be overridden by app.
   * Fixed few issues in SRTP and keying mechanism, e.g: premature local SDP modification (it should be done after verification).
   * Potential minor backward compatibility issue: default value of pjmedia_srtp_setting.crypto_count is now zero, previously it was initialized with all crypto via pjmedia_srtp_setting_default(), actually zero and all cryptos in this setting semantically are the same.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5755 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-15 03:00:59 +00:00
Nanang Izzuddin e740a9c7d7 Re #2059: Fixed assertion in JSON name verification due to NULL string pointer passed to string::compare() in reading array node.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5754 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-14 08:28:52 +00:00
Sauw Ming 1780e6c5df Re #2098: Fixed insufficient buffer length to avoid message truncation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5753 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-08 23:54:40 +00:00
Sauw Ming 106ec876a3 Fixed #865: More clever RTP transport remote address switch
The summary of changes:
- To solve no 2:
Add callback rtp_cb2(pjmedia_tp_cb_param *param) which allows application to get more info from the media transport, such as the packet's source address.
- To solve no 3:
Add compile time option PJMEDIA_TRANSPORT_SWITCH_REMOTE_ADDR (by default enabled). Currently, there are already runtime options PJMEDIA_UDP_NO_SRC_ADDR_CHECKING and PJMEDIA_ICE_NO_SRC_ADDR_CHECKING, but there are a few drawbacks:
 * the options are not exported to the higher level, such as stream, or pjsua.
 * the options are separate for each transport, UDP and ICE, there's no single option to do this.
- To solve no 1:
Using the new rtp_cb2() callback, move the functionality to check the packet's source address to the stream/video stream.
By checking the RTP pt and SSRC, there are a few advantages:
 * When receiving packets from multiple sources, stream can choose the packet with the correct SSRC as advertised from the SDP, and discard the others (see also ticket #1366).
 * If remote address switch is enabled, a faster switch can be achieved as soon as packet with correct ssrc is received, instead of waiting for several consecutive packets (according to setting PJMEDIA_RTP_NAT_PROBATION_CNT).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5752 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-08 02:01:26 +00:00
Nanang Izzuddin 1108232740 Fixed #2099: Fixed SSL socket (OpenSSL backend), when sending buffer is full, any further send operation should be rejected immediately without writing to OpenSSL SSL BIO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5751 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-06 08:44:18 +00:00
Nanang Izzuddin 6d20076196 Re #2096:
- Fixed crash in media transport when application calls detach() while the transport only implements detach2().
 - Avoid assertion in UDP media transport when calling detach() without previously calling attach().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5750 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-06 07:42:54 +00:00
Nanang Izzuddin 4a5dc5711d Re #2096: Fixed assertion in SDP answerer when its SRTP is disabled. This is an SDES issue, but related to DTLS-SRTP works (all SRTP keyings have been refactored for DTLS implementation).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5749 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-27 07:44:26 +00:00
Sauw Ming b8226493a8 Fixed #2098: Add SDP attribute SSRC and CNAME
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5748 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-27 03:37:53 +00:00
Nanang Izzuddin 486266b850 Close #2097: Updated UDP media transport to start socket read operation in pjmedia_transport_media_start().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5747 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-26 10:14:27 +00:00
Nanang Izzuddin 4223637bd0 Fixe #2096:
- Fixed re-INVITE scenario: always generate SRTP attr in SDP re-offer/answer as both offerer/answerer (as long as SRTP is not disabled of course), currently it does not generate SRTP attr if active session does not use SRTP.
 - Fixed bug in retrieving video stream info from SDP that caused DTLS transport (UDP/TLS/RTP/SAVP) getting rejected.
 - Added pjsua app param '--srtp-keying=0/1' to choose SRTP keying to be used in the outgoing offer (0=SDES (default), 1=DTLS-SRTP).
 - Few minors, e.g: adding transport_srtp_dtls/sdes.c to pjmedia MSVC2015 project.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5746 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-26 07:50:18 +00:00
Sauw Ming 12affd6c35 Fixed #2093: Crash when parsing SDP with an invalid media format description
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5741 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-21 02:32:36 +00:00
Sauw Ming 6229154cb1 Fixed #2092: Crash when receiving SDP with invalid fmtp attribute
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5740 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-21 02:28:02 +00:00
Nanang Izzuddin 6a833fdbff Misc (#2059): Update Android & Java app samples to avoid call instance deletion in the library callback context (thanks Kai Ludwig for the feedbacks).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5738 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-16 09:37:00 +00:00
Riza Sulistyo 0be14c8181 Fix #2091: On iOS11, replace_udp_sock() might fail and lead to unusable UDP transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5737 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-15 13:57:11 +00:00
Sauw Ming 8f28537db2 Re #2086: Add more info for better understanding of the lifetime of PJSUA2 objects. And add an example to explicitly delete PJSUA2 objects.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5736 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-12 07:07:02 +00:00
Sauw Ming 08ff24ac94 Fixed #2086: Add C# binding using SWIG, and support for Xamarin
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5735 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-12 06:50:00 +00:00
Sauw Ming c7d20d5111 Fixed #2089: Support receiving Opus packets with various frame lengths
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5734 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-12 06:18:22 +00:00
Nanang Izzuddin d4357ce3bf Fix #2085:
- Do not override Via header of a CANCEL request, its values are copied from the original INVITE already.
 - Reset account's Via address & transport when SIP TCP/TLS transport is disconnected.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5733 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-25 07:00:42 +00:00
Nanang Izzuddin c777dd8c89 Re #2082: For MSVC backward compatibility, set PJ_SSL_SOCK_IMP to PJ_SSL_SOCK_IMP_OPENSSL by default when PJ_HAS_SSL_SOCK is set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5732 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-24 03:42:35 +00:00
Sauw Ming a6fe0de627 Re #2084: Make sure the output size of opus_decode() doesn't exceed the available frame size.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5731 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-24 02:37:39 +00:00
Sauw Ming 8efbf21031 Re #2082: Minor fix of incorrect function definitions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5730 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-24 01:10:42 +00:00
Riza Sulistyo 0d8fc52ae7 Re #2059 (misc): Use PJSIP_MAX_URL_SIZE to print remote info (URL) instead of
hard-coded.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5729 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-18 05:44:41 +00:00
Sauw Ming b1bb629773 Fixed #2084: Opus decode/recovery issue when FEC or PLC is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5728 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-18 04:02:00 +00:00
Riza Sulistyo 3ab66b795b Re #2059 (misc): Prevent corrupt header from causing a crash when printed.
Thanks to George Joseph for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5727 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-17 11:30:52 +00:00
Riza Sulistyo 6f7a8b0fbf Close #2083: Fix build error when building using LibreSSL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5726 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-17 11:15:34 +00:00
Sauw Ming c4279ec635 Re #2082: Initial implementation of GnuTLS support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5725 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-15 08:52:29 +00:00
Sauw Ming 20e3502515 Fixed #2081: Assertion when setting audio dev in PJSUA2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5724 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-11 01:03:46 +00:00
Sauw Ming 46d1d869bd Re #2059 (misc): Fixed build error when PJSIP_HAS_RESOLVER==0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5723 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-10 00:48:10 +00:00
Sauw Ming 56b557cd18 Re #2059 (misc): sudo make uninstall: Remove ignored failures
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5722 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-08 06:16:45 +00:00
Nanang Izzuddin dc991f5636 Close #2080: Added call flag PJSUA_CALL_UPDATE_TARGET for updating remote target, the new remote target can be specified in pjsua_msg_data.target_uri.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5721 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-08 04:08:35 +00:00
Sauw Ming 5a2e2bf613 Fixed #2079: Crash in pjsip due to race condition in account's keep alive timer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5720 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-08 03:20:34 +00:00
Nanang Izzuddin 9353a01e78 Misc (re #2059): Configurable number of socket options (PJ_MAX_SOCKOPT_PARAMS macro).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5719 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-05 09:48:31 +00:00
Riza Sulistyo d0d441b96e Re #2059 (misc): Update account tp_type when transport_id is changed on pjsua_acc_modify().
Thanks to Oded Arbel for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5718 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-31 09:08:56 +00:00
Nanang Izzuddin 3a92ff29be Close #2077: New PJSUA & PJSUA2 APIs for instantiating extra audio device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5717 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-19 01:45:37 +00:00
Sauw Ming ab0b027a5a Re #2071: Change the default array size to contain the resolved address to 16 (and 32 if IPv6 is enabled) to accommodate more addresses.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5716 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-18 09:46:03 +00:00
Sauw Ming cfe26bd049 Re #2074: Revert the default sample Android setting to use separate worker threads, since it doesn't seem to fix the problem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5715 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-18 03:42:18 +00:00
Nanang Izzuddin db7a4d592a Fixed #2076:
- Ignore transport error on completed transaction.
 - Don't disconnect call if transport error happens on transaction that is not initial INVITE transaction.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5714 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-13 08:16:30 +00:00
Nanang Izzuddin 0677422d37 Fixed #2075: Updated PJSUA pjsua_set_snd_dev() to immediately apply new sound device IDs if sound device is active even when PJSUA_SND_DEV_NO_IMMEDIATE_OPEN mode is set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5713 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-13 03:53:20 +00:00
Nanang Izzuddin fb12b9497c Fixed #2074: Introduced compile time setting PJSUA_SEPARATE_WORKER_FOR_TIMER to allow separate polling for timer events and network events.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5712 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-12 07:44:09 +00:00
Riza Sulistyo 6a3a672e33 Close #2073: Enable wav playlist to play WAV files with extra chunks after DATA chunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5711 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-07 03:03:50 +00:00
Riza Sulistyo c9d493b9d6 Close #2072: Call on_call_transfer_status() callback when REFER is responded with failure response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5710 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-05 07:11:08 +00:00
Riza Sulistyo a5ffdfbd43 Re #2062: Remove related files from Visual Studio projects.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5709 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-04 09:30:47 +00:00
Riza Sulistyo 126a428c1e Re #2065: We still need to modify some source code to avoid build error on
Visual Studio 2005.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5708 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-04 07:23:36 +00:00
Sauw Ming a39e60661e Re #2071: Specify socktype hint when calling getaddrinfo, to reduce the number of addresses returned.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5707 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-04 01:28:40 +00:00
Sauw Ming e25c665c69 Fixed #2071: Update pjsip_resolve() to be able to return more than one resolved address
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5706 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-30 04:41:52 +00:00
Sauw Ming 2403173ecd Re #2059 (misc): Fixed ffmpeg H264 unpacketization error due to uninitialized unpack_nal_start
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5705 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-29 02:23:08 +00:00
Sauw Ming 85fa1f130f Re #2069: Change the field name to outboundProxies, so that it's more consistent with account's proxies settings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5704 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-27 08:37:37 +00:00
Sauw Ming 200388f6e9 Fixed #2069: Add outbound proxy settings in pjsua2
Thanks to Zarko Coklin for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5703 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-27 08:24:50 +00:00
Sauw Ming efb1a7f102 Fixed #2068: Add compile time option to enable/disable simple AGC in conference
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5702 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-27 03:29:07 +00:00
Riza Sulistyo 054ae59549 Close #2067: Fix linker error when building as dll on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5701 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-22 06:59:47 +00:00
Nanang Izzuddin 96b5e742e0 Fixed #2066: SDP ignored in 180/183 response without To tag.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5700 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-22 02:07:48 +00:00
Riza Sulistyo 77545dfdac Close #2065: Update libyuv to fix linker error when building libyuv as dll on Visual Studio 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5699 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-21 09:25:11 +00:00
Nanang Izzuddin c8847d0d12 Re #2057: Fixed compile error on MSVC2005 due to var declaration not in the beginning of block (C89 interop).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5698 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-21 06:00:21 +00:00
Sauw Ming 19686af25f Re #2063: Add more doc in other parts of the library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5697 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-17 04:07:43 +00:00
Riza Sulistyo 8c64f49acb Re #2059 (misc): Set conference's port rx_level to 0 when get frames from the
port is skipped. Thanks to Kal Conley for the original patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5696 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-16 13:25:04 +00:00
Sauw Ming 6dd508d4bf Re #2063: Temporarily disable the assertion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5695 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-14 13:05:42 +00:00
Riza Sulistyo 975aa1047a Fixed #2064: Fix return code in pjsip_find_msg().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5694 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-14 11:08:11 +00:00
Sauw Ming fc9177cadd Fixed #2063: Add more documentation in PJSIP's parser to prevent stack buffer overflow
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5693 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-14 08:20:15 +00:00
Sauw Ming 5b52b9b2e8 Re #2062: Remove deprecated Linux kernel implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5692 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-13 06:06:25 +00:00
Sauw Ming 945170f7b2 Re #2059 (misc): Fixed potential buffer underflow when reading config file.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5691 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-10 11:17:14 +00:00
Sauw Ming 39b6c28877 Fixed #2061: Unable to destroy certain PJSIP transports
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5690 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-10 03:21:52 +00:00
Sauw Ming e6b74a5d86 Fixed #2060: Prevent releasing unacquired lock when creating SIP dialog
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5689 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-10 03:16:30 +00:00
Sauw Ming 6ae662e215 Re #2059 (misc): Fixed possible function name clash with md5 due to non-static function.
Thanks to Luca Ceseroli for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5688 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-10 03:14:58 +00:00
Sauw Ming 3eb2db9847 Fixed #2057: Optimization: Improve conference mix loop performance
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5687 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-09 22:48:17 +00:00
Sauw Ming 462a854a95 Fixed #2058: New PJSUA API to register a transport factory
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5686 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-09 01:49:06 +00:00
Sauw Ming 3785e35cf0 Changed version to 2.7.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5685 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-08 03:47:34 +00:00
Sauw Ming 0c548deeff Changed version to 2.7.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5683 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-08 03:03:22 +00:00
Riza Sulistyo 37f0826f9f Closed #2056: Add validity checking for numeric header values.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5682 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-08 02:58:18 +00:00
Sauw Ming 8aafacebe4 Re #2045 (misc): Fixed build error in streamutil sample app if PJMEDIA_HAS_SRTP is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5681 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-06 10:30:07 +00:00
Nanang Izzuddin f5900e790d Fix #2055:
- Updated active socket to avoid double ioqueue key unregistration.
- Updated ioqueue to avoid double ioq key unregistration (select & epoll only, winnt & uwp does not seem to be affected).
- Added check for potential 'negative' ioqueue->count.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5680 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-03 06:54:54 +00:00
Riza Sulistyo eb4d878e78 Re #2054: When setting CXXCFLAGS manually, make sure it's applied correctly.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5679 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-01 05:23:36 +00:00
Riza Sulistyo 8438c3eab6 Re #2045 (misc): Fix various warning raised from using clang 4.0.1. Thanks to
Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5678 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-01 04:55:29 +00:00
Sauw Ming 0a1f0aa252 Fixed #2053: Update pjsua_get_snd_dev() info before calling on_snd_dev_operation() callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5677 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-27 06:30:50 +00:00
Sauw Ming 7557f0ad24 Fixed #2052: Add option for pjsua callback on_stream_created to destroy application's supplied media port
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5676 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-24 07:31:39 +00:00
Sauw Ming 70fc8cd0ca Re #2045 (misc): Add more doc to explain the specific SIP error codes and conditions which will trigger automatic registration retry upon failure.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5675 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-19 04:09:49 +00:00
Sauw Ming 773323dd8f Re #2045 (misc): Continuation of r5673: Set endpt to NULL after iLBC deinit(). Thanks to Kal Conley for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5674 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-16 10:20:18 +00:00
Sauw Ming 39fe6052d5 Re #2045 (misc): Prevent iLBC codec to be initialized more than once
Thanks to Kal Conley for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5673 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-16 03:49:22 +00:00
Riza Sulistyo acaef7d13a Close #2051: Implement callback wrapper for on_buddy_evsub_state() on pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5672 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-06 08:14:31 +00:00
Riza Sulistyo 93c3c1bd29 Re #2045(misc): To prevent assertion, don't copy rem_rtcp on pjmedia_stream_create()/pjmedia_vid_stream_create() if address is not set.
Thanks to Lauri Vanksa for the Report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5671 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-06 06:54:37 +00:00
Riza Sulistyo 2838ed1049 Close #2050: Enabling AES-GCM when using external libSRTP version 1.x or 2.0.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5670 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-05 04:40:20 +00:00
Riza Sulistyo 02f2e61e94 Close #2049: Try to allocate larger buffer size when converting pjsip_hdr to
SipHeader.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5669 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-03 09:35:36 +00:00
Sauw Ming b27b7e0201 Fix #2048: Add compile time option to disable sleep in sip endpoint's handle events on ioqueue polling's error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5668 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-29 02:43:05 +00:00
Sauw Ming f9a385c4f0 Re #2045 (misc): Fix PLC from being active too early
Thanks to Kal Conley for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5667 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-29 02:36:49 +00:00
Riza Sulistyo 10e3d3a46b Close #2047: Use android ndk binutils when building with --use-ndk-cflags options.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5666 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-29 02:30:23 +00:00
Sauw Ming d06375766f Fixed #2046: ICE: Use STUN FINGERPRINT attribute when sending keepalives
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5665 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-28 03:44:53 +00:00
Sauw Ming eb5182db65 Re #2045 (misc): Fixed assertion in pcaputil sample app if using SRTP.
The assertion is caused by passing NULL as tp parameter.

Thanks to Stefan Hörnqvist for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5664 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-28 02:56:36 +00:00
Sauw Ming 54b3ab3544 Changed version to 2.7-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5663 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 09:24:08 +00:00
Sauw Ming f5a1fbfc84 Changed version to 2.7
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5661 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 04:20:21 +00:00
Riza Sulistyo bb2a8213ee Re #1994(misc): Remove uneeded commented code related to the fix on r5659.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5660 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 03:17:42 +00:00
Riza Sulistyo e58d5bfec9 Re #1994(misc): Fix warning on VS2015 when enabling video, opus, webrtc ec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5659 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:58:42 +00:00
Nanang Izzuddin 075ed502b7 Close #2044: Compile time setting for QoS using IP_TOS/IPV6_TCLASS on Darwin OS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5658 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:25:39 +00:00
Sauw Ming 7c6147688e Re #1994 (misc): Add check in our sample alt_pjsua_aud when stopping stream (similar to alt_pjsua_vid).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5657 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:18:57 +00:00
Sauw Ming 51519471d8 Re #1993: With the update of bundled libSRTP to 2.1, external SRTP needs to be of version 2.x as well. This changeset will allow external SRTP users the option to continue using their current version 1.x.
* Also add autodetection of external SRTP version via the configure script.

Thanks to Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5656 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-22 02:42:22 +00:00
Riza Sulistyo 88ada0cae7 Close #2043: Fixed pjnath-test crash due to access to an invalid callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5655 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 05:04:25 +00:00
Riza Sulistyo e307352851 Re #1994(misc): Fixed various warnings on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5654 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 04:34:27 +00:00
Sauw Ming d2faa6d17a Re #1994 (misc): Fixed various warnings when using gcc/clang
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5653 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 02:57:26 +00:00
Sauw Ming 9b1eaa7903 Re #2022: Enable encode_decode_test() for Video Toolbox in pjmedia video codec unit tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5652 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 02:09:42 +00:00
Nanang Izzuddin 2965eb35bc Fix #2042: Fixed SRTP error in sending video RTP after call hold and unhold.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5651 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-19 10:21:42 +00:00
Nanang Izzuddin ab8e049fa0 Misc (re #1994): Fixed compile error in pjsua2_demo.cpp due to unrecognized 'unique_ptr'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5650 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-18 07:10:11 +00:00
Riza Sulistyo fdce1c4b1a Re #2041: Implement API to handle IP address change.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5649 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-15 05:32:08 +00:00
Riza Sulistyo 98015a8d0b Re #1994(misc): Avoid calling SSL_shutdown() if handshake wasn't completed otherwise OpenSSL 1.0.2f and newer version will complain. Thanks to Peter Koletzki for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5648 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-14 05:03:45 +00:00
Riza Sulistyo 76ea108e47 Re #1994(misc): Fixed unguarded 'if' which might lead to double locking. Thanks to Alexander Traud for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5647 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-11 10:31:03 +00:00
Sauw Ming 6327086923 Re #1994 (misc): Fixed various warnings thrown by GCC 6.3. Thanks to Alexander Traud for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5646 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-08 11:16:09 +00:00
Riza Sulistyo 36588499fa Close #2040: Implement CodecParam class as a wrapper for pjmedia_codec_param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5645 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-06 03:44:35 +00:00
Nanang Izzuddin bbde0fbf9a Fix #2039: Updated pj_sockaddr_in_set_str_addr() to use pj_getaddrinfo() instead of pj_gethostbyname(), just as used by pj_sockaddr_set_str_addr() for IPv6 address resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5644 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-04 04:12:50 +00:00
Riza Sulistyo 087584a93f Re #2035: Don't include srtp.h on pjmedia config.h, which raise error when including PJSIP from install dir.
Thanks to Peter Koletzki for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5643 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-22 04:59:57 +00:00
Sauw Ming cc2ecbfb28 Re #1994 (misc): Prevent possible overflow in video bps calculation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5642 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-17 02:48:38 +00:00
Sauw Ming 2cd3d0a311 Fixed #2037: Add on_rx_offer2() callback for SIP invite
Thanks to Andrey Kovalenko for the suggestion and the initial version of the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5641 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-16 04:53:44 +00:00
Riza Sulistyo add2753ff5 Re #2035: Should check enough space for (MAX_TRAILER_LEN+4) before srtp_protect_rtcp().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5640 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 13:31:14 +00:00
Riza Sulistyo 1932df820e Fix #2035: Make sure transport SRTP buf size is sufficient before calling
srtp_protect() and srtp_protect_rtcp().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5639 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 10:44:10 +00:00
Riza Sulistyo dd30c396b1 Close #2034: Add support to Python3 using PJSUA2 API.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5638 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 09:45:09 +00:00
Sauw Ming a6318663f0 Re #2032: Fixed assertion if using ICE without STUN server.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5637 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 07:19:21 +00:00
Sauw Ming e34fa7ed5e Fixed #2032: NAT64 support for IPv4 interoperability
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5636 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 02:51:59 +00:00
Nanang Izzuddin 494f58b07d Misc (re #1994): Fixed compile warnings on MSVC 2005 & 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5635 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-01 07:49:34 +00:00
Nanang Izzuddin 92d73c51d5 Fix #2033: ICE must use regular nomination when communicating with lite implementations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5634 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-28 09:43:57 +00:00
Nanang Izzuddin 4b6c5064c3 Re #2004: Update libyuv version from libyuv git master repo dated 27 July 2017, the compile errors on old gcc versions issue persists though.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5633 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-28 02:51:44 +00:00
Sauw Ming e33d5ff658 Fixed #2031: Add compile-time config for L16 codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5632 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-27 06:45:48 +00:00
Sauw Ming 67265de3cb Fixed #2030: Improve error handling in OpenSSL socket
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5631 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-27 06:07:54 +00:00
Riza Sulistyo 10882ddde2 Re #2029: Support for G.729 backend implementation from bcg729.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5630 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-19 10:29:10 +00:00
Nanang Izzuddin 55e2570a9b Fix #2028: Cannot send UPDATE when call is ringing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5629 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-19 06:10:17 +00:00
Sauw Ming 3d50dd93ed Re #1994 (misc): Fixed warning during runtime on iOS 11:
UI API called on a background thread



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5628 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-18 11:55:25 +00:00
Nanang Izzuddin 299f743edf Close #2027: Fixed assertion in pj_gethostip() when system hostname is empty.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5627 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-18 11:49:04 +00:00
Sauw Ming 328c76944e Re #1994 (misc): Suppresses implicit conversion warning (on iOS)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5626 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-18 00:43:43 +00:00
Sauw Ming fb5e38e119 Re #2022: Fixed build error on older Mac SDKs if Foundation.h is not explicitly included.
Also fix warning of unused label.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5625 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-07 10:59:25 +00:00
Nanang Izzuddin af17b763fc Misc (re #1994): Rearrange H264 default backend priority to avoid multiple H264 backends. Currently OpenH264 has higher priority than FFmpeg, and VideoToolBox (for MacOS/iOS) should be manually enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5624 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-07 08:40:04 +00:00
Nanang Izzuddin c259fa68b2 Close #1999: Support OpenSSL 1.1.0 with backward compatibility setting turned of (no deprecated APIs).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5623 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-07 02:52:44 +00:00
Nanang Izzuddin b267904a2e Re #1993: Updated configure script to enable AES-GCM with OpenSSL 1.1.0 after updating bundled libsrtp version.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5622 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-06 05:00:30 +00:00
Nanang Izzuddin ceae447b4f Re #2018: Added API pjmedia_transport_srtp_dtls_start_nego() to start DTLS-SRTP nego without SDP offer/answer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5621 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-05 05:37:24 +00:00
Riza Sulistyo 2cc8271977 Fix #1968: Failure in configure-android when specifying --use-ndk-cflags with
Android NDK r13 or later.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5620 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-05 04:01:33 +00:00
Riza Sulistyo 07b997252c Fix #2026: Add option to for the SDP version to not increment when there's no
change from previous answer/offer.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5619 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-05 03:57:53 +00:00
Nanang Izzuddin 5388bd15ee Re #1993: Updated sample apps streamutil.c/vid_streamutil.c as the new libsrtp removes hex_string_to_octet_string().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5618 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 13:00:42 +00:00
Nanang Izzuddin 99aa30f054 Re #1993: Slight improvement on simple SRTP key generator (when PJ_HAS_SSL_SOCK is not set).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5617 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 11:22:39 +00:00
Riza Sulistyo cf1ee2b672 Fix #1991: Support ALSA audio device volume setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5616 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 10:32:39 +00:00
Nanang Izzuddin d7395e8c6c Re #1993: Minor: cleaned up few more unused files.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5615 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 05:39:40 +00:00
Nanang Izzuddin 0e6af12b9e Close #1993: Updated bundled libSRTP version to 2.1.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5614 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 05:22:51 +00:00
Sauw Ming ae6a52677a Fixed #2025: crash in pjsua_destroy if there's pending outgoing TCP/TLS transmission
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5613 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 00:13:24 +00:00
Sauw Ming 576a3c0ae9 Fixed #2024: Crash due to uncancelled timer if there's an error in resolver's query transmit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5612 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 00:06:22 +00:00
Nanang Izzuddin d24b351b7d Misc (re #1994): Updated Android pjsua2 sample app:
- print call statistics when call is disconnected
 - add template for writing log to file
 - change STUN setting, now it is disabled by default



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5611 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-30 09:24:50 +00:00
Nanang Izzuddin ad310537a4 Misc (re #1994): Fixed pjsip_inv_verify_request3() to set PJSIP_INV_SUPPORT_UPDATE flag into output param '*options' (instead of into internal var 'rem_option'). Thanks George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5610 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-30 04:14:10 +00:00
Sauw Ming 55456d6ed7 Re #2022: Add VideoToolbox framework to ipjsua XCode project.
- Add libyuv to XCode project. Users that do not require video can safely remove this library from the project.
- Also add some privacy mic and camera usage settings in Info.plist



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5609 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-22 10:46:44 +00:00
Riza Sulistyo ab2d8674b6 Fix #2023: Crash on pjsip_dlg_create_uac() when specifying URI with valueless
header parameter.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5608 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-20 04:12:09 +00:00
Sauw Ming 7b26b96875 Re #1994 (misc): Fixed uninitialized return status in function wsola_discard_get_frame() which may cause the test to fail in some cases.
Thanks to Michael Scheiffler for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5607 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-15 03:03:21 +00:00
Sauw Ming 101682a15a Re #2022: Fixed build configuration to make sure that it's not included in other platforms (such as Android).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5606 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-15 02:56:48 +00:00
Sauw Ming a836f456a2 Re #1994 (misc): Fixed missing disabling pragma pack after structure definitions.
Thanks to Michael Scheiffler for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5605 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-15 02:18:17 +00:00
Nanang Izzuddin 99767f9421 Close #2009: Fixed issue no 2:
- Synchronizing PJMEDIA transport ICE and ICE stream transport lifetime using group lock.
 - Zeroing callback pointer in ICE stream transport destructor.
 - Added few pointer validity checks.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5604 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-14 06:04:12 +00:00
Sauw Ming d71eeaf882 Fixed #2022: Video Toolbox H264 encoder and decoder for Mac and iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5603 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-08 06:23:56 +00:00
Sauw Ming cb37176f10 Re #2018: fixed build failure due to undefined function "get_libsrtp_errstr" in transport_srtp_sdes.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5602 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-08 06:12:45 +00:00
Nanang Izzuddin fc07f6f8cd Fix #2021: Crash in getting call info with long Contact header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5601 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-08 04:57:59 +00:00
Riza Sulistyo c4c272b566 Re #1994(misc): Method pj_hash_calc_tolower() might return a different hash
value. Thanks to Fredrik Hansson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5600 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-05 07:27:45 +00:00
Riza Sulistyo 5339d9f98a Fixed #2019: Conflict with 'isblank' when using g++ 5.4.0. Thanks to Ken Mastro
for the report and suggested fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5599 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-05 03:31:18 +00:00
Nanang Izzuddin d521840c98 Re #2018: Fixed compile error due to a silly mistake.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5598 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-04 08:58:55 +00:00
Nanang Izzuddin edcedb569a Re #2018: Initial version of DTLS-SRTP implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5597 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-03 09:22:34 +00:00
Sauw Ming f43c106b17 Re #2008: Fixed error "Socket is already connected" when trying to connect to TURN server using the above patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5596 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-24 01:02:07 +00:00
Sauw Ming e0abc07c24 Re #1994 (misc): In video port, print the actual format of the video device being opened (instead of the requested format).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5595 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-23 02:44:19 +00:00
Sauw Ming 595cac851b Fixed #2017: Incorrect parsing of zero length multipart body parts
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5594 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-22 03:53:35 +00:00
Sauw Ming 1771c9c774 Fixed #2016: Buffer overrun in PJSIP transaction layer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5593 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-22 03:46:32 +00:00
Sauw Ming fde7f2e158 Re #2012: (minor) remove warning: '/*' within block comment
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5592 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-22 03:04:28 +00:00
Sauw Ming 24460462e3 Re #1994 (misc): Remove unnecessary include file of engine.h in OpenSSL socket implementation. This will allow the usage of OpenSSL compiled with no-engine option.
Thanks to Marcus Froeschl for pointing it out.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5591 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-22 02:58:31 +00:00
Sauw Ming 62fc956061 Fixed #2015: Add multicast option in streamutil sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5590 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-09 02:39:08 +00:00
Sauw Ming 568a1967ce Re #1994 (misc): Fixes bugs in base64
* move access to input parameter variable after the assertion to check the variable.
 * prevent invalid memory access for empty input string
 * allow using an output buffer of just the right size

Thanks to Adrien Béraud for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5589 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-04 05:22:44 +00:00
Riza Sulistyo 2bfc5161cd Re #1994 (misc): Related to r5500, when receiving an SDP answer for SRTP, process the tag correctly based on the offer. Thanks to Colin Morelli for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5588 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-25 14:13:56 +00:00
Riza Sulistyo b5a7805ee9 Re #2013: Don't raise assert on re-INVITE without media.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5587 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-25 09:51:32 +00:00
Riza Sulistyo b033d247a6 Fix #2013: Prevent crash when timer refresh with SRTP is interrupted by a re-INVITE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5586 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-25 09:45:10 +00:00
Riza Sulistyo 5d2d55223d Re #2012: Add additional comments.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5585 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-21 08:53:32 +00:00
Riza Sulistyo 6b62e3eb1a Fix #2012: Prevent memory leak when rejecting a call from on_incoming_call()
callback.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5584 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-21 08:33:00 +00:00
Nanang Izzuddin 02aa625694 Re #2009: Avoid premature destroy in TURN session by incrementing group lock ref before performing async DNS resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5583 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-19 04:07:23 +00:00
Sauw Ming 8d6fe84d19 Re #1994 (misc): Use compile-time setting PJSIP_MAX_URL_SIZE for local and remote info's buffer size (instead of hard-coded).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5582 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-13 03:50:51 +00:00
Sauw Ming c70866f519 Fixed #2011: Fixed crash when accessing video device info in pjsua2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5581 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-10 06:30:01 +00:00
Riza Sulistyo 58ae1b89f5 Re #1994 (misc): Fix build error on pjsua_cli_uwp_comp pjsua_cli_wp8 for Release Win32.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5580 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-07 04:22:48 +00:00
Nanang Izzuddin d358d84cc1 Fixed #2010: Updated PJSUA to store the user part of an account ID in escaped form.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5579 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-07 04:00:30 +00:00
Nanang Izzuddin faa514cfc9 Fixed #2008: Updated TURN socket to use pj_activesock_sendto() for UDP connection (was always using pj_activesock_send()).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5578 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-03 05:31:58 +00:00
Nanang Izzuddin d4e88a504f Misc (re #1994): Potential linking error due to bad dependency library ordering.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5577 74dad513-b988-da41-8d7b-12977e46ad98
2017-04-01 06:22:16 +00:00
Riza Sulistyo d8cb9c0168 Fix #2007: Fix Possible crash when using session timer due to the early release of dialog pool.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5576 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-31 09:52:12 +00:00
Riza Sulistyo dfee496e95 Re #1994 (misc): Remove assert if SIP auth receives 401 for request with very
very long To URI. Thank you Oleg Grazhdan for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5575 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-31 06:02:48 +00:00
Riza Sulistyo 48228a9345 Fix #2006: Fix android build failed using NDK r14 caused by by the removal of android_alarm.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5574 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-29 05:07:47 +00:00
Sauw Ming 0b8eb4905d Fixed #2002: Deadlock between PJSUA LOCK, transaction group lock, and UA mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5573 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-29 02:40:48 +00:00
Sauw Ming a608e028ba Fixed #2001: Deadlock between dialog lock and transaction group lock
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5572 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-29 00:43:52 +00:00
Sauw Ming 728b18eb2d Fixed #2005: Crash when hanging up call if video capture device fails to open
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5571 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-24 03:00:47 +00:00
Sauw Ming 8ed046143c Re #1882 (misc): Add check in xml_print_node() to prevent writing past the end of the buffer.
Thanks to Joshua Elson for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5570 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-22 00:26:34 +00:00
Nanang Izzuddin f7fd3f559c Close #2003: Added API pjsip_multipart_get_raw() to get raw body of a multipart message body.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5569 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-21 07:19:43 +00:00
Nanang Izzuddin 2bf25fb6c9 Misc (re #1994): Fixed linking errors when configuring with '--disable-speex-codec' and without '--disable-speex-aec' params.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5568 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-13 10:27:14 +00:00
Riza Sulistyo d0c1efce8e Re #1994 (misc): Remove an extra double quote on pjsua.vcxproj.
Thanks to Sean Bright for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5567 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-09 05:06:12 +00:00
Riza Sulistyo 154238bfe0 Re #1994 (misc): Fix linker error on Visual Studio when using OpenSSL 1.1 or newer.
Thanks to Sean Bright for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5566 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-09 04:41:45 +00:00
Riza Sulistyo 6e2f999842 Re #1994 (misc): Prevent crash on pj_ssl_get_info() triggered by an error on ioqueue_on_read_complete().
Thanks to Alexander Traud for the report and suggested fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5565 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-09 03:36:10 +00:00
Riza Sulistyo 926fc6f650 Re #1994 (misc): Add IPv6 transport type support in pjsip_transport_register_type().
Thanks to Joshua Colp for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5564 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-08 04:33:47 +00:00
Riza Sulistyo 90eb224f16 Re #1994: Prevent overflow on pj_generate_unique_string() for android.
Thanks to Esed Alihodzic for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5563 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-07 03:28:56 +00:00
Sauw Ming c6dfde7616 Fixed #1966:
* Add option to specify default address family in ICE default candidate
* As answerer, match the address family in the SDP offer if possible.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5562 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-03 02:11:02 +00:00
Sauw Ming 48559e7bb8 Re #1994 (misc): Add sub_hdr_list in outgoing subscription requests (as it should, according to the spec)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5561 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-02 01:56:32 +00:00
Nanang Izzuddin 3b90d341cd Misc (re #1994): Updated dshow video device stop to not wait for renderer thread when renderer is not created.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5560 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-24 04:21:07 +00:00
Riza Sulistyo 1a18efe912 Re #1994 (misc): Don't try to resolve a DNS SRV query that is already considered resolved.
Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5559 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 02:11:46 +00:00
Sauw Ming 99da85642d Closed #1998: Add API pjsip_evsub_set_uas_timeout()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5558 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 01:29:21 +00:00
Sauw Ming 472be1d2af Closed #1997: Add setting to retry timer upon transport disconnection failure (503)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5557 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 01:23:54 +00:00
Sauw Ming 2c0cd2684f Closed #1995: Add API pjsip_transport_shutdown2() to immediately disconnect a transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5556 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 01:16:58 +00:00
Sauw Ming c818be3b8b Fixed #1996: Via-Header mismatch in CANCEL
Thank you to Marcus Froeschl for the report



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5555 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 01:12:21 +00:00
Sauw Ming 394279af15 Re #1994 (misc): Make the log's sender and thread width a compile-time configurable setting.
Thanks to Richard Mudgett for the suggestion.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5554 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 00:57:15 +00:00
Riza Sulistyo 7348600d32 Re #1994 (misc): miphoneos-version-min not set when specifying MIN_IOS on configure-iphone.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5553 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-31 08:19:50 +00:00
Nanang Izzuddin a8d4778494 Changed version to 2.6-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5552 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-26 03:47:58 +00:00
Nanang Izzuddin 6708aa8be6 Changed version to 2.6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5550 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-26 02:29:59 +00:00
Nanang Izzuddin 08f9907e3d Re #1964: Fixed QoS build config for mingw32/msys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5549 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-25 11:23:08 +00:00
Nanang Izzuddin 47ba92b893 Re #1954: Fixed WebRTC build config for mingw32/msys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5548 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-25 11:21:32 +00:00
Riza Sulistyo d76dcc020d Re #1900: Fixed some build error for UWP arm.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5547 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-25 07:52:32 +00:00
Nanang Izzuddin d83a154766 Re #1900: Updated audio device config to automatically enable WASAPI and disable WMME when PJ_WIN32_WINPHONE8 is set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5546 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-25 04:15:11 +00:00
Riza Sulistyo d8d6a35cdf Re #1945 (misc): Prevent automatically adding Content-Type and Content-Length on
printing multipart data when its already printed.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5545 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-24 05:59:05 +00:00
Nanang Izzuddin 84ad7a0244 Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: dereferencing type-punned pointer, using uninitialized var.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5544 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-24 05:41:05 +00:00
Nanang Izzuddin 8e9b1a9d42 Misc (re #1945): Automatically define macro PJ_ANDROID=1 on Android platforms (previously should be defined manually via config_site_sample.h or config_site.h).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5543 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-24 05:36:50 +00:00
Sauw Ming 4d754c4fcc Re #1945 (misc): On iOS, print log in debugging console output when using ipjsua with cli.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5542 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 06:15:14 +00:00
Nanang Izzuddin b704bccfef Re #1900: Deleted dirty dir third_party/build/portaudio. The dir was copied from UWP branch (perhaps it was not deleted properly in the first sync from trunk?)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5541 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 05:24:44 +00:00
Nanang Izzuddin 17606031a8 Re #1932: Updated configure script for AES-GCM support detection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5540 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 05:18:21 +00:00
Nanang Izzuddin 81f3607801 Re #1900: Reintegrated works in UWP branch to trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5539 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 04:32:34 +00:00
Nanang Izzuddin 1b25ccaf76 Re #1900: Merged changes from trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5538 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 04:18:59 +00:00
Nanang Izzuddin de3d744c2e Close #1932: Support OpenSSL 1.1.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5537 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 03:34:17 +00:00
Riza Sulistyo 4ab1838d0b Re #1945 (misc): Don't trigger SRV complete callback when there is a parse error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5536 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 01:34:12 +00:00
Riza Sulistyo 1aadfca5bf Close #1919: Clear unused-variable warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5535 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 10:31:38 +00:00
Nanang Izzuddin 7d9a05c9a3 Re #1513: Applied the new API pj_pool_safe_release().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5534 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 07:41:25 +00:00
Nanang Izzuddin 377e5d4550 Close #1513: Added pj_pool_safe_release() API.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5533 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 06:10:15 +00:00
Nanang Izzuddin 101b72f638 Re #1900: Merged changes from trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5532 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 10:55:35 +00:00
Nanang Izzuddin fffe8ea945 Misc (re #1945): re r5530, reset SIP transport port setting to SIP_PORT before saving the configs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5531 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 10:44:49 +00:00
Nanang Izzuddin c40e9b5861 Misc (re #1945): Added TLS transport in pjsua2 sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5530 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 10:09:42 +00:00
Riza Sulistyo 429160d8b7 Re #1900: Misc updates, e.g: remove reference to wp8 gui sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5529 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 09:00:31 +00:00
Riza Sulistyo d88abe820d Re #1900: Misc updates, some projects are platform specific. Prevent it from being built for the unintended platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5528 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 07:01:37 +00:00
Sauw Ming 532eba77fc Re #1945 (misc): Add an alias REQUESTED-ADDRESS-FAMILY (which is used in the RFC 6156) for REQUESTED-ADDRESS-TYPE (which is used in the draft). Change the string literal to use the RFC version.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5527 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 03:50:32 +00:00
Nanang Izzuddin 598b098e2b Re #1900: Misc updates, e.g: Minimal Rebuild prop, SVN ignore prop.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5526 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-17 09:38:39 +00:00
Sauw Ming f40602acd9 Re #1945 (misc): Fixed occasional crash in pjsua Android sample app when initializing OpenGL renderer (crash in init_opengl()->ANativeWindow_setBuffersGeometry()). It doesn't happen in pjsua2 sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5525 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-17 04:28:39 +00:00
Sauw Ming ddbcae1896 Re #1945 (misc): move default setting of number of supported video device format to pjmedia-videodev config instead of config_site_sample, since not everybody will use the sample.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5524 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-17 00:50:09 +00:00
Nanang Izzuddin 6d85bf82fe Misc (re #1945): Fixed bug in NAT detect: missing address family assignment in socket binding (thanks Howard Chalkley for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5523 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-12 02:22:18 +00:00
Sauw Ming 0f381d2516 Re #1960: Use boolean field to indicate whether the info is empty (instead of relying on bzero and memcmp)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5522 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11 11:13:57 +00:00
Nanang Izzuddin bb2d69508e Fixed #1990:
- Added check for possibility of premature failure in pj_turn_sock_alloc() after pj_turn_session_set_server() returns PJ_SUCCESS.
 - Added more logs on ICE initialization progress for future debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5521 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11 07:29:46 +00:00
Riza Sulistyo e03e14b7f1 Re 1989: Implement pj_strtok()/pj_strtok() as a replacement to strtok().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5520 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11 04:38:29 +00:00
Nanang Izzuddin 46979cfe6c Fixed #1988: Wait for any active spinning loop in read callback to complete before reinitiating read operation in UDP restart.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5519 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11 03:35:17 +00:00
Sauw Ming a480a8ae91 Fixed #1960: Export SIP transport TLS state and TLS certificate info to PJSUA2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5518 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11 01:41:31 +00:00
Riza Sulistyo bb71b914d6 Re #1975:
- Change autoconf detection in r5483 to compile time check.
- Don't use tls1_ec_nid2curve_id()/tls1_ec_curve_id2nid() since they are not public API.
Thanks to Alexander Traud for the suggestions.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5517 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-10 09:17:07 +00:00
Nanang Izzuddin 698254c51a Misc (re #1945): Fixed warning of missing braces in nested struct/union var initialization on recent GCC versions.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5516 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-03 12:44:08 +00:00
Nanang Izzuddin 04d4620359 Re #1900: Miscelaneous updates, e.g: enable/disable WMME/WASAPI automatically based on active platform, cosmetics.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5515 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 09:27:40 +00:00
Riza Sulistyo 6044d8b204 Re #1900: Fix merge conflict for solution file and project files. And fix some compile error found for UWP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5514 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 05:20:16 +00:00
Nanang Izzuddin c551b147fc Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5513 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 03:40:07 +00:00
Nanang Izzuddin 3b3df6f577 Re #1900: Merged from trunk (without 3 text conflicts in sln & vcxproj).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5512 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 03:28:05 +00:00
Riza Sulistyo 9cf87434dd Re #1900: Move the cli runtime component to a more suitable folder.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5511 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 03:04:28 +00:00
Nanang Izzuddin 476cc27704 Fixed #1987: Verify 'med_prov_cnt' after media reinitialization (with a new call setting) to make sure it is not decreased.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5510 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-23 05:40:59 +00:00
Nanang Izzuddin efd63fca74 Misc (re #1945): Fixed WebRTC build failure for mips64 platform (thanks Oliver Wigley for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5509 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-22 09:33:55 +00:00
Nanang Izzuddin e67232ab2a Re #1986: Moved MainActivity.java of Android pjsua sample app, so it is not deleted by 'make clean'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5508 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-21 08:46:28 +00:00
Nanang Izzuddin 2b6b6f6c59 re #1986: Updated missing CFLAGS/LDFLAGS in Makefile of pjsua sample app for Android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5507 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-21 08:38:41 +00:00
Nanang Izzuddin 4e00b0169e Re #1986: Convert pjsua sample app Android project from Eclipse to Android Studio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5506 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-21 08:33:57 +00:00
Nanang Izzuddin bd7c0b2a72 Misc (re #1945): Creates pjsip-apps/src/swig/android/app/src/main/jniLibs/armeabi automatically in SWIG Java Makefile, as sometime an empty folder is omitted by git.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5505 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-21 02:13:07 +00:00
Nanang Izzuddin 95601a86dd Misc (re #1945): Creates pjsip-apps/src/swig/java/output automatically in SWIG Java Makefile, as sometime an empty folder is omitted by git (thank you Oliver Wigley for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5504 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-20 11:19:41 +00:00
Nanang Izzuddin a299dc63ac Re #1986: Removed PjCamera.java and PjCameraInfo.java from pjsua2 sample app dir structure (it will be copied by build script from PJMEDIA).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5503 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-19 05:23:12 +00:00
Nanang Izzuddin f70c966edd Re #1986: Convert pjsua2 sample app Android project from Eclipse to Android Studio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5502 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-19 04:48:35 +00:00
Nanang Izzuddin f4e3ed6a2e Misc (re #1945): Fixed various compile warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5501 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-19 03:01:55 +00:00
Nanang Izzuddin 9f2f701296 Misc (re #1945): Update SRTP to restart crypto tag from 1 when generating reoffer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5500 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-19 03:00:37 +00:00
Nanang Izzuddin e4a1091168 Misc (re #1945 and re #1954): Export TARGET_ABI to env var in configure-android script. This var is needed by configure script to generate WebRTC source list for Android when "--use-ndk-cflags" is specified.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5499 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-16 06:22:31 +00:00
Sauw Ming d204202e18 Re #1941: re #5454, modify declaration of NSArray to support older compiler version
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5498 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-16 04:05:44 +00:00
Nanang Izzuddin 6c47f59bc8 Re #1900: Updated project files for target platform version configuration, it is configurable via property sheet build/vs/pjproject-vs14-common-config.props.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5497 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-09 13:43:07 +00:00
Sauw Ming 43a75c3027 Re #1954: Add WebRTC license info files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5496 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-09 06:15:22 +00:00
Sauw Ming d8fd4d9dee Fixed #1985: Escape '@' character in the Replaces parameter of REFER request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5495 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-07 03:33:35 +00:00
Sauw Ming ce5f04ad5a Fixed #1984: Remove the implementation of PJ_HASH_USE_OWN_TOLOWER
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5494 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-07 03:24:16 +00:00
Sauw Ming 81fa6b4b20 Fixed #1983: Add option to update call Via address
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5493 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-06 11:23:39 +00:00
Sauw Ming 28a338cb3c Re #1982: Cleanup call setting flags even if callbacks on_call_tx/rx_offer() not implemented
Otherwise this could cause media to be unintentionally reinitialized on re-INVITEs/updates.
Refer to ticket #1793.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5492 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-06 10:58:48 +00:00
Sauw Ming 3099588831 Re #1982: Add the new call flag for PJSUA2 swig
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5491 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-06 07:52:19 +00:00
Sauw Ming d22bc57174 Fixed #1982: Add option to reinitialize call media transports
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5490 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-06 07:29:11 +00:00
Riza Sulistyo 9ec7576fd9 Re #1945: Change the error message on pjsua_media_channel_update() when unknown/unsupported media type is found.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5489 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-23 08:15:49 +00:00
Sauw Ming 3be92fbc55 Fixed #1981: Assertion when session timer is disabled and PJSIP receives 422
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5488 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-23 01:03:56 +00:00
Sauw Ming c61f145193 Fixed #1980: Assertion if remote removes some media lines in previous SDP negotiations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5487 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-21 01:38:04 +00:00
Sauw Ming d540b6b37e Re #1945 (misc): Revert r5484, unreg_timeout can be zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5486 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-17 08:09:21 +00:00
Sauw Ming 812618e1f8 Fixed #1979: Add support to parse address string with scope ID
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5485 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-17 04:38:25 +00:00
Sauw Ming a5d01d09e1 Re #1945 (misc): Normalize account config's unregistration timeout when adding account.
Thanks to Johan Lantz for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5484 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-17 03:02:41 +00:00
Sauw Ming b247753f80 Re #1975: Add autoconf detection of OpenSSL elliptic curve and sigalg support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5483 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-16 05:53:23 +00:00
Sauw Ming 6264b9ee43 Re #1961: Fallback to CLOCK_MONOTONIC if /dev/alarm is not found, or getting ANDROID_ALARM_ELAPSED_REALTIME fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5482 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-15 02:23:38 +00:00
Nanang Izzuddin 651b791867 Re #1971: Request IPv4 relay address to an IPv6 TURN server for IPv6-IPv4 connectivity.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5481 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-14 06:13:01 +00:00
Sauw Ming 4d0ef2547b Re #1945 (misc): Disable local host resolution (PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION) for macOS as well (instead of for iOS only).
Please refer to #1342 for more details.

Thanks to Jeff Anderson for the report and the fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5480 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-14 03:23:51 +00:00
Riza Sulistyo 4129164aec Closed #1978: Add function to get RTP session from stream/video stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5479 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-04 14:57:20 +00:00
Riza Sulistyo fee1634ae5 Re #1977: Add attach2() and pjmedia_transport_attach2() to pjmedia transport interface.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5478 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-03 09:39:20 +00:00
Riza Sulistyo 434417e922 Re #1974: Fix DNS write on freed memory.
Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5477 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-01 04:10:17 +00:00
Sauw Ming f7a742bbbf Fixed #1976: Support to generate a synthesized IPv6 address from IPv4 address
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5476 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-31 01:27:34 +00:00
Sauw Ming 987f666914 Re #1974: Remove DNS cache entry from resolver's hash table when app callback has a reference.
Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5475 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-28 06:25:03 +00:00
Sauw Ming 22532b6a85 Re #1972: ICE initialization issues when creating a component/candidate fails.
Fixed ICE stuck if TURN creation fails in resolved state, assertions when trying to access other components/candidates, and crash when trying to access destroyed TURN socket.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5474 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-28 03:57:55 +00:00
Sauw Ming 303c352b1d Re #1974:
If there is a pending query, set the return value to that query (instead of NULL)

Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5473 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-28 03:17:54 +00:00
Sauw Ming 121e46bb8c Fixed #1975: Add support to select elliptic curve and signature algorithm for TLS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5472 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-27 07:58:01 +00:00
Sauw Ming e9091aa3b8 Fixed #1974: Various fixes for DNS IPv6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5471 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-27 05:47:06 +00:00
Riza Sulistyo 8afc25ab08 Re #1900:
- Modify some project files for x64 build.
- Add some files/folder to the global ignore list.
- Disable PJ_OS_HAS_CHECK_STACK as default.
- Use ip_helper_generic.c which provides implementation to pj_enum_ip_interface() and pj_enum_ip_route(). 



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5470 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-26 07:16:01 +00:00
Nanang Izzuddin 4b6835c9b8 Re #1971: Updated TURN session to add REQUEST-ADDRESS-FAMILY/REQ-ADDR-TYPE attribute in Allocate of IPv6 relay request.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5469 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-24 07:20:36 +00:00
Nanang Izzuddin 3e8a70aeab Misc (re #1945): Avoid calling memchr() or memcpy() with NULL pointer (thanks Kal from the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5468 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-24 03:22:46 +00:00
Nanang Izzuddin e134556947 Misc (re #1945): Updated SIP URI in sample app pjsua2_demo.cpp (for debugging convenience).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5467 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-21 07:55:41 +00:00
Nanang Izzuddin 516630870e Misc (re #1945): Fixed false error message "cannot find Account.." when deleting PJSUA2 Account (thanks Kal for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5466 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-21 07:40:47 +00:00
Nanang Izzuddin 984a7fbdbe Fix #1972: Update ICE candidate status to non-PJ_EPENDING after TURN server name resolution fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5465 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-21 06:38:16 +00:00
Nanang Izzuddin 3eb36844aa Misc (re #1945): Fixed assertion in resolver: on read error, source address may be invalid and printing source address will trigger assertion (due to invalid address family).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5464 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-21 02:46:32 +00:00
Sauw Ming 62e8930801 Fixed #1941: Disable the setup of audio session in coreaudio_dev. This will allow application to have better control towards its audio session management, which will help to ensure a smoother integration with CallKit features.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5463 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-18 00:38:18 +00:00
Nanang Izzuddin 56de449a1d Close #1971: Updated pjsua to enable IPv6 TURN in ICE media transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5462 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-17 07:50:28 +00:00
Sauw Ming 4515bdb345 Re #1945 (misc): Get rid of 64-bit compiler warnings for pjsua_app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5461 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-14 04:53:07 +00:00
Riza Sulistyo 6b8a0bf30b Re #1970: Implement function pjmedia_rtp_decode_rtp2().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5460 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-13 11:49:57 +00:00
Riza Sulistyo 568ba7a2e5 Re #1969: Fix crash on using an already destroyed SSL socket.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5459 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-13 09:02:50 +00:00
Riza Sulistyo a9bd0fd451 Re #1945 (misc): Use localtime_r() instead of localtime() (if available) since localtime() is not thread safe.
This fixes a data race in pj_time_decode() which is called from multiple threads.
Thanks to Kal (b17 c0de) for the patch.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5458 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-13 04:32:29 +00:00
Nanang Izzuddin 0db777a6cc Re #1961: Updated Android pj_gettimestamp() implementation to use ANDROID_ALARM_ELAPSED_REALTIME.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5457 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-10 08:20:54 +00:00
Sauw Ming 5d330ce596 Fixed #1967: Add function pjsip_tdata_get_dlg
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5456 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 08:41:55 +00:00
Sauw Ming 9160ae5ad7 Fixed #1965: Add support to specify Contact params specific to REGISTER requests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5455 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 07:42:22 +00:00
Sauw Ming 594c1bd214 Re #1941: Support for AVCaptureDeviceDiscoverySession to replace the deprecated [AVCaptureDevice devices] in iOS 10.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5454 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 05:58:54 +00:00
Sauw Ming cf630db1d6 Re #1941: Add support to specify min iOS versions in configure-iphone and update the default for ipjsua sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5453 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 05:49:14 +00:00
Sauw Ming e40b1e65ab Re #1945 (misc): Fixes a memory leak in alsa_factory_refresh().
Thanks to Kal (b17 c0de) for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5452 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 01:56:22 +00:00
Sauw Ming ca33970d3a Re #1945 (misc): Fixed wrong parameter caused by previous commit r5450
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5451 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 01:48:05 +00:00
Sauw Ming 668b97ff15 Re #1945 (misc): Fixed incorrect usage of pj_memcmp()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5450 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-07 01:42:52 +00:00
Sauw Ming 96f47ee7ba Re #1962: Update the ticket number in the code doc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5449 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-06 09:48:10 +00:00
Riza Sulistyo 070981eb07 Re #1964: Add PJ_QOS_TYPE_SIGNALLING to pjsua2 swig symbol and the deprecated pjsua python module.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5448 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-06 07:20:41 +00:00
Nanang Izzuddin 6f96a93a9b Fix #1961: Updated Android timestamp to use CLOCK_BOOTTIME (or ANDROID_ALARM_ELAPSED_REALTIME for older NDK version), to avoid suspended clock when CPU is in deep sleep.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5447 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-06 04:05:02 +00:00
Sauw Ming 5a6c810022 Re #1954: Add option to use WebRtc EC in aectest sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5446 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-06 00:52:12 +00:00
Riza Sulistyo b1490d57d8 Re #1964: Implement QoS for darwin OS which supports SO_NET_SERVICE_TYPE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5445 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-05 09:52:39 +00:00
Riza Sulistyo 88044b49a5 Re #1963: Implement QoS for IPv6 for platform that supports IPV6_TCLASS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5444 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-05 09:07:17 +00:00
Sauw Ming 2f3374260b Re #1954: Add libwebrtc to ipjsua sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5443 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-05 09:03:10 +00:00
Sauw Ming df6332306b Fixed #1962: Premature STUN socket destruction when there's an error during STUN server resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5442 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-04 09:10:11 +00:00
Nanang Izzuddin bc3134bb8f Misc (re #1945): Added feature of listing dshow device in ffmpeg video device (experimental).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5441 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-29 04:04:22 +00:00
Nanang Izzuddin e81b938dbe Misc (re #1945): Fixed warning in OpenH264 encoder "ParamValidationExt(), slice mode = SM_SIZELIMITED_SLICE..." (thanks Carlos Dom for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5440 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-27 03:12:13 +00:00
Nanang Izzuddin 23ed970882 Re #1900: Fixed crash in destroying UDP socket after being initialized but not used (for sending/receiving).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5439 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-26 07:57:54 +00:00
Riza Sulistyo 84566a6387 Re #1954 (misc): Fix build error on pjmedia-test when defining PJMEDIA_CONF_USE_SWITCH_BOARD.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5438 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-20 08:21:26 +00:00
Nanang Izzuddin b479b3979e Misc (re #1945): Updated resolver behaviour to not mark nameserver as bad after responding with PJ_DNS_RCODE_SERVFAIL. Thanks George Joseph for the feedback and the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5437 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-15 07:03:37 +00:00
Sauw Ming 6edfd510b5 Re #1952: Apply the fix to video stream info as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5436 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-14 19:43:18 +00:00
Riza Sulistyo 059a3257f6 Re #1959: Add reference counter to pjsip_inv_session to avoid race condition.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5435 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-30 08:40:18 +00:00
Sauw Ming 6cdf2d7a45 Fixed #1958: Update RTP sequence number during keep-alive
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5434 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-30 00:45:19 +00:00
Riza Sulistyo c1bbda538f Re #1954: Add support for VS2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5433 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-29 08:44:54 +00:00
Sauw Ming fcd490b08a Re #1954: Add support for VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5432 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-26 01:59:53 +00:00
Sauw Ming 7be7ba1f62 Re #1954: Fixed compilation flags for building on arm64 iOS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5431 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-26 01:22:14 +00:00
Sauw Ming 8f1d068b65 Re #1956: Support for setting audio input source capability in Android JNI audio device
* modify the sample code
* add symbols for pjsua2



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5430 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-25 03:28:54 +00:00
Sauw Ming faea1af7ed Re #1954: Fixed compilation flags for Android armeabi build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5429 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-25 02:28:00 +00:00
Sauw Ming 3469abaa11 Re #1954: Add WebRTC to third party component
* Add build config for GNU build systems



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5428 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-25 01:36:33 +00:00
Sauw Ming b86d83f88f Fixed #1957: ICE stagnation when connectivity check fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5427 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-25 01:32:42 +00:00
Sauw Ming f69b5d2fdd Fixed #1956: Support for setting audio input source capability in Android JNI audio device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5426 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-23 09:13:28 +00:00
Nanang Izzuddin e8f460ff83 Fixed #1955: Fixed assertions in DNS SRV resolution with IPv6 TCP/TLS target.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5425 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-23 06:22:27 +00:00
Sauw Ming 5489f8a82a Re #1945 (misc): Fixed typo in libyuv Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5424 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-22 03:01:18 +00:00
Nanang Izzuddin 973f9f89ac Misc (re #1945): fixed STUN server resolution should be retried, as PJSUA_STUN_RETRY_ON_FAILURE is set, in media transport creation after the one in startup failed (thanks Marcus Froeschl for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5423 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-19 07:25:33 +00:00
Nanang Izzuddin f8d033ff82 Misc (re #1945): Added opus.h/c to VS2005 & VS2015 project pjmedia-codec (thanks Arkadiusz Wronski for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5422 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-18 09:54:37 +00:00
Nanang Izzuddin 5a3047399a Misc (re #1945): Added PJ_HAS_IPV6 in pj_dump_config(), thanks Alexei Gradinari for the suggestion, also updated the year in copyright line.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5421 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-18 08:04:37 +00:00
Nanang Izzuddin b977d2fdb0 Fixed #1953: Skip IPv6 socket in resolver on system without IPv6 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5420 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-17 04:29:17 +00:00
Nanang Izzuddin 25c71542c5 Fix #1952: Skip address type matching in pjmedia_stream_info_from_sdp() when both sides use ICE, the ICE transport will do the matching when it generates ICE checklist.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5419 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-15 09:59:09 +00:00
Riza Sulistyo 4cca53c97b Re #1943: Raise linking error if libsrtp doesn't support the crypto.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5418 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-15 07:32:29 +00:00
Sauw Ming fc7b89425a Fixed #1951: Add callback to configure SRTP setting and key in pjsua/pjsua2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5417 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-12 03:47:26 +00:00
Riza Sulistyo 292f41cfa1 Re #1943: Improve the clarity of configure log message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5416 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-11 03:10:37 +00:00
Sauw Ming 7cd0883a5e Fixed #1943: (Windows) Add SRTP OpenSSL sources in Visual Studio libsrtp project file.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5415 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-09 02:57:05 +00:00
Sauw Ming 77a12fccab Re #1943: Fixed incorrect configure script.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5414 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-08 11:19:35 +00:00
Riza Sulistyo 528c374870 Re #1950: Check for ndk-build on configure-android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5413 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-08 10:19:15 +00:00
Sauw Ming a9f5f14b4f Re #1943: AES-GCM crypto support for SRTP
Special thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5412 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-08 09:09:29 +00:00
Riza Sulistyo 2180c8aed1 Re #1910: Send the additional keyframe only after the initial one.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5411 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-05 13:06:14 +00:00
Riza Sulistyo 968508c801 Re #1910: Implement option to regularly send video keyframe in the beginning of video call session.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5410 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-05 07:26:18 +00:00
Sauw Ming 50e392b0e4 Fixed #1950: Failure in configure-android when specifying --use-ndk-cflags with Android NDK r11 or later
* Create our own dummy (empty) Android sample app
* Unspecify the toolchain version and use default instead



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5409 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-05 04:42:48 +00:00
Sauw Ming dc8990b4a1 Re #1945 (misc): Fixed incorrect SRTP crypto suite name and doc.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5408 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-05 01:14:20 +00:00
Sauw Ming c221a10734 Fixed #1949: Support video window manipulation for native preview
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5407 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-04 04:17:30 +00:00
Sauw Ming c6831f27ef Fixed #1948: Modify async dispatch to synchronous on Mac and iOS video device implementation
Thanks to Marc Etcheverry for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5406 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-03 10:22:29 +00:00
Sauw Ming 2fc4124143 Fixed #1947: Support for OpenH264 v1.6.0 codec
Thanks to Marc Etcheverry for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5405 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-03 07:08:07 +00:00
Sauw Ming c32be339ca Re #1945 (misc): Fixed missing doxygen group doc for SIP transport TCP.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5404 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-02 09:59:32 +00:00
Sauw Ming dadfcb7557 Re #1945 (misc): Set IPv6 sockets to be IPv6 only
Auto-detect in configure script if this option is supported, and if yes, Set IPv6 sockets to be IPv6 only.

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5403 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-02 08:35:28 +00:00
Riza Sulistyo 990448ede1 Re #1945 (misc): Add pjsua2 sample app using javafx.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5402 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-28 08:50:08 +00:00
Nanang Izzuddin d557c8510b Fix #1946: Avoid deinitialization of uninitialized client auth session.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5401 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-28 08:21:45 +00:00
Nanang Izzuddin 3ae35ecc4a Misc (re #1945): Updated checks in pjsip_tx_data_dec_ref(). Thanks Alexei Gradinari for the feedback and the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5400 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-28 03:17:04 +00:00
Nanang Izzuddin 57e10a2a18 Misc (re #1945): Updated ffmpeg video device to query supported format from the device/ffmpeg instead of hardcoded to RGB24.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5399 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-27 07:49:14 +00:00
Nanang Izzuddin 0aa92d744f Misc (re #1945): Fixed assertion when outgoing call without SDP is answered with 200 also without SDP (on NDEBUG mode, assertion shouldn't occur and call is disconnected immediately).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5398 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-26 07:48:59 +00:00
Nanang Izzuddin 6ab00bd2be Misc (re #1945): Updated array limit checks and docs in pjsip_evsub_register_pkg() and pjsip_endpt_add_capability(). Thanks Alexei Gradinari for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5397 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-26 02:58:44 +00:00
Sauw Ming 55cfb7f4ab Changed version to 2.5.5-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5396 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-21 07:18:06 +00:00
Sauw Ming f996f75514 Changed version to 2.5.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5394 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-21 03:28:11 +00:00
Riza Sulistyo a1d83438e8 Re #1928 (misc): Remove trailing comma that might cause --disable-libyuv to not
work.
Thanks to Kyle Kurz for the report.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5393 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-20 07:03:49 +00:00
Riza Sulistyo 76eb2a2a4a Re #1944: Allow native window to be set for video output window on SDL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5392 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-20 06:55:11 +00:00
Nanang Izzuddin a8e81715b0 Misc (re #1928): Fixed build error in Android SWIG wrapper after modification r5389 (using --sysroot instead of -I in CFLAGS).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5391 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-20 05:21:51 +00:00
Nanang Izzuddin 8dcd2e3a5b Misc (re #1928): Added MSVC2005 project 'swig_java_pjsua2.vcproj' for building Java binding of pjsua2 via SWIG.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5390 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-20 03:28:37 +00:00
Nanang Izzuddin 304e69f3c7 Misc (re #1928): Updated configure-android to add sysroot setting in CFLAGS and LDFLAGS. This update will also remove linking warning 'cannot find entry symbol _start'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5389 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-19 07:41:15 +00:00
Nanang Izzuddin bf599934e7 Misc (re #1928): Fixed possible stuck issue in pjnath-test caused by blocking recvfrom() upon concurrent socket events.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5388 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-18 11:02:02 +00:00
Riza Sulistyo acb57f2daa Re #1933: Handle link-local address that cause the test to fail.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5387 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-15 15:02:09 +00:00
Sauw Ming 2cf3583841 Re #1928 (misc): Re #1878 (Compile time option for TCP/TLS transport to not create a listener)
When not creating a TLS listener, still call pj_ssl_sock_set_certificate(), since it will later still be used by clients.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5386 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-15 10:16:58 +00:00
Nanang Izzuddin 2545ac9127 Re #1933: Updated pjnath sess_auth.c test to use loopback address on IPv6.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5385 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-15 02:56:21 +00:00
Nanang Izzuddin 9fcb9e3fb3 Misc (re #1928): Cleaned up STUN transport config setup for ICE in pjsua.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5384 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-14 06:14:46 +00:00
Nanang Izzuddin b8f9191b6b Misc (re #1928): Print explicit log message about PJSUA ignoring IPv6 STUN server.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5383 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-14 05:15:16 +00:00
Nanang Izzuddin 37447d50b4 Misc (re #1928): Use host IP for SIP UDP transport address when STUN resolution fails to avoid zero address.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5382 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-14 04:37:37 +00:00
Riza Sulistyo b95f9dfd42 Re #1928: Change the cipher on pjlib-test since DES_CBC_SHA might not be
supported on newer openssl.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5381 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-13 11:03:01 +00:00
Nanang Izzuddin 7df7703982 Re #1942:
- Reverted back r5375, otherwise retrying next server will not work as it is using the ALLOCATING -> RESOLVED.
 - Don't set state to RESOLVED when pj_stun_session_send_msg() fails to avoid infinite loop, simply return the error code and let application destroy the TURN client session (which is already done by TURN socket).
 - Handle allocation error when delayed allocation fails (otherwise TURN client session may never get destroyed?).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5380 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-13 09:57:26 +00:00
Nanang Izzuddin 30a3cb950b Misc (re #1928): Fixed pjlib-util-test issue on Mac due to bad socket address length param for pj_sock_bind().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5379 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-12 12:36:35 +00:00
Sauw Ming 15117996cd Re #1937: Do not build libyuv in shared mode if video is disabled.
Thanks to Ross Beer for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5378 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-11 00:51:12 +00:00
Nanang Izzuddin 928b27f6fb Misc (re #1928): Reverted back some dirty changes in r5376 about address info indexing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5377 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-05 13:21:31 +00:00
Nanang Izzuddin 8388e64845 Misc (re #1928): pj_getaddrinfo() is better to return error when no address is found, some codes in the library seem to expect pj_getaddrinfo() to behave this way.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5376 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-05 12:53:20 +00:00
Nanang Izzuddin 978e5ef6dd Fix #1942: TURN socket should not start TURN allocation in state PJ_TURN_STATE_RESOLVED when previous state is already PJ_TURN_STATE_ALLOCATING.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5375 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-04 13:12:24 +00:00
Riza Sulistyo 711b13c371 Re #1928: max_bps on the param codec needs to be set properly on Opus.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5374 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-01 08:22:14 +00:00
Sauw Ming 2fd6e4b104 Fixed #1929: Fixed memory leak when using sip_auth_client since it's also used by other components, such as sip_dialog, publishc, and pjsua_im.
Application should use the new API pjsip_auth_clt_deinit() to release the pool.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5373 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-30 08:23:08 +00:00
Sauw Ming e2ca1d7a08 Re #1931: Add one more session preset to support, i.e. resolution 960x540
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5372 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-30 06:40:10 +00:00
Riza Sulistyo 5f61940597 Re #1928: Fixed set bitrate on opus codec might not change the codec param and support opus automatic bitrate setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5371 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-30 03:36:39 +00:00
Sauw Ming 6c976cb23e Fixed #1931: Support more resolutions when opening the video capture and properly set the buffer's width and height as well.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5370 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-30 03:18:47 +00:00
Nanang Izzuddin 82bf46b5f0 Re #1926: Fixed bug of premature app callback invocation in DNS A+AAAA resolution when DNS A record is available in the cache.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5369 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 09:19:01 +00:00
Riza Sulistyo 331e7c7fb0 Re #1928: fix silly mistake on r5365.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5368 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 07:11:41 +00:00
Nanang Izzuddin 1889a7a954 Re #1930: Fixing stuck issue or server socket not closed after an incoming connection fails, e.g: due to no shared cipher, and timer heap is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5367 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 06:23:20 +00:00
Nanang Izzuddin 0d27f4a1f3 Misc (re #1928): Fixed various compile warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5366 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 05:53:10 +00:00
Riza Sulistyo 0a30b3ed81 Re #1928: Allow setting opus bitrate to PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE when calling pjmedia_codec_opus_set_default_param.
Thanks to Marcus Froeschl for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5365 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 05:46:17 +00:00
Nanang Izzuddin 22295d8972 Re #1937: Keep libyuv enabled in configure script even when ffmpeg swscale is detected because video orientation feature requires libyuv. However, put ffmpeg swscale priority higher than libyuv in video converter.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5364 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 04:58:16 +00:00
Riza Sulistyo f350bf39ef Re #1928: Avoid assertion when using STUN on NAT64.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5363 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 02:21:00 +00:00
Nanang Izzuddin 62b53f3a5c Re #1937: Fixed compile warnings because of duplicate lines in libyuv's Makefile.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5362 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 02:10:49 +00:00
Nanang Izzuddin 5a0186f493 Re #1937: Added libyuv build configs for GNU build systems.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5361 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-28 14:32:08 +00:00
Riza Sulistyo 82d6857fd9 Re #1937: Change the include header format, so that user can specify external library.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5360 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-28 08:00:58 +00:00
Sauw Ming b4e1c4800c Re #422: IPv6 support for NAT detect
Add API pj_stun_detect_nat_type2()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5359 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-28 06:33:20 +00:00
Riza Sulistyo 6e472e9320 Re #1937: Change project and folder name for consistency with existing third party library.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5358 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-28 06:04:19 +00:00
Riza Sulistyo 4459e48ee6 Fixed #1939: Fixed crash when failed to initialize android jni dev (AudioRecord).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5357 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-27 11:09:01 +00:00
Nanang Izzuddin 38887d51af Fix #1938: Wrong registration renewal flag info in PJSUA registration callback when unregistration fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5356 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-24 13:03:25 +00:00
Nanang Izzuddin e05b63091d Misc (re #1928): Fixed possible linking errors with Opus codec due to library dependency order issue, this only happens on some platforms, e.g: Android NDK r10e.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5355 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-24 09:28:08 +00:00
Riza Sulistyo 0ebbabf445 Re #1937: Add libyuv to Visual Studio 2005 and 2015 solution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5354 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-23 05:28:54 +00:00
Nanang Izzuddin 9e7d903c6e Fix #1936: Reset 'regc->has_tsx' when the sending fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5353 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-22 03:42:32 +00:00
Nanang Izzuddin 85ff60a082 Fix #1935: Avoid shallow-cloning header in SIP registration client as when sending REGISTER message is done asynchronously via DNS SRV resolution, pjsip_regc may get destroyed prematurely and some data allocated by pjsip_regc pool (e.g: Contact header) will become invalid too before the sending process is completed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5352 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21 10:19:10 +00:00
Nanang Izzuddin 00bf81466a Close #1934: Add reference counting APIs to event subscription.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5351 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21 08:56:42 +00:00
Riza Sulistyo e1eb84ed83 Re #1933: Update pjnath-test for IPv6 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5350 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21 06:55:10 +00:00
Nanang Izzuddin 2273c779cd Close #1927: IPv6 support in DNS SRV:
- support DNS A and AAAA resolution for each target in DNS SRV record
 - support fallback to DNS A and DNS AAAA resolution when DNS SRV record is not available
 - support IPv6 nameservers.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5349 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-20 10:10:42 +00:00
Sauw Ming 118fc60dee Re #1931: Fixed configure script for iOS to be able to detect both AVFoundation and OpenGL ES
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5348 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-16 10:55:23 +00:00
Sauw Ming cfeae392cb Re #1931: Add support for AVFoundation on Mac
- Deprecate QTKit
- Rename ios_dev.m to darwin_dev.m
- Important: Re-run configure and make dep after applying this change!



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5347 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-16 10:38:34 +00:00
Sauw Ming 86bca1bba2 Re #1928 (misc): Fixed missing the conversion of AccountMwiConfig in AccountConfig::toPj()
Thanks to Žarko Coklin for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5346 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-16 02:05:16 +00:00
Sauw Ming e32c11a5ed Re #1928 (misc): Add doc about unimplemented config fields of CLI telnet (passwd and welcome message)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5345 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-15 12:32:08 +00:00
Sauw Ming 1f9e6d9f34 Re #1930: Revert back the change to comment do_handshake() in on_accept_complete() committed in r5343.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5344 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-15 01:59:14 +00:00
Sauw Ming 882bbf656d Re #1930: Fixed race condition when more than one thread try to close the same activesock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5343 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-14 10:28:19 +00:00
Nanang Izzuddin 5518959bd5 Re #422: Enable IPv6 in ICE transport in pjsua-lib:
- currently only IPv6 host candidate will be generated, still not sure whether IPv6 NAT is really used in real world
 - if the account enables IPv6 media and the host has IPv4 address, ICE will generate IPv4+IPv6 candidates, it should be very useful in NAT64 environment, and should not add delay in ICE nego in IPv6 only environment (note: candidate check pair must have same IP address family).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5342 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-13 07:11:41 +00:00
Riza Sulistyo 468c0625b1 Re #1928(misc) : Align Big-AES names with latest RFC.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5341 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-10 04:04:09 +00:00
Nanang Izzuddin bb4ffeca43 Re #422: Omit IPv6 link-local address in gathering ICE candidate.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5340 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08 08:52:18 +00:00
Nanang Izzuddin 4d07fcf756 Re #422: Added IPv6 support to PJNATH, changes:
- Deprecated 'pj_ice_strans_cfg.af', if set, the value will be ignored, address family setting is now specified via transport setting, i.e: 'pj_ice_strans_cfg.stun_tp/turn_tp'.
 - Deprecated 'pj_ice_strans_cfg.stun/turn', for backward compatibility, this field value will be checked if 'pj_ice_strans_cfg.stun_tp_cnt/turn_tp_cnt' is set to zero.
 - Added 'pj_ice_strans_stun_cfg' & 'pj_ice_strans_stun_cfg' and the corresponding 'pj_ice_strans_stun/turn_cfg_default()'
 - Added 'pj_ice_strans_cfg.stun_tp/turn_tp' as replacement of 'pj_ice_strans_cfg.stun/turn', it is now an array so app can have multiple STUN/TURN transports.
 - Added macro PJ_ICE_MAX_STUN/TURN to specify maximum number of STUN/TURN transports in each ICE component in compile-time.
 - Miscellaneous: fixed socket number limit in concurrency test in pjnath-test, updated pjsua_media.c to use new 'pj_ice_strans_cfg' setting.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5339 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08 03:17:45 +00:00
Sauw Ming 5283ca4581 Close #1930: Race condition in OpenSSL socket
A workaround to solve the race condition based on ticket #985.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5338 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08 02:55:24 +00:00
Nanang Izzuddin cb9d90b0ed Close #1926: Support IPv6 address resolution without DNS resolver.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5337 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08 02:49:56 +00:00
Riza Sulistyo e05bd3c197 Re #1929: Avoid memory pool growing when doing re-Registration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5336 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-07 10:07:57 +00:00
Nanang Izzuddin 24200380fa Misc (re #1928): Updated SDP parser to be able to consume IPv6 address in RTCP line.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5335 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-06 09:14:37 +00:00
Riza Sulistyo 4bcf7379e2 Changed version to 2.5.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5334 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-02 10:33:50 +00:00
Riza Sulistyo 68ec5c49b3 Changed version to 2.5.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5332 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-02 07:36:05 +00:00
Riza Sulistyo 92a8451488 Re 1917(misc): Fix silly mistake on r5330.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5331 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-01 10:34:12 +00:00
Riza Sulistyo 806e030aae Re #1917(misc): Fix failed purity_test() on pjlib-test since getaddrinfo() might return multiple addrinfo.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5330 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-01 10:05:22 +00:00
Nanang Izzuddin 9ebe82ccad Re #1923: Added check for call availability before processing delayed answer, as call may have been disconnected after call is answered with 200 from on_incoming_call() callback but media fails to start.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5329 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-01 05:56:13 +00:00
Riza Sulistyo 9bbd5af8be Re #1917 (misc): Fix failed pjlib-test when built using Visual Studio 2015 caused by defined EINVAL with different string error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5328 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31 08:11:48 +00:00
Nanang Izzuddin 4ea6a9efa5 Misc (re #1917): Print warning (instead of returning error) in creating SIP UDP transport IPv6 with STUN enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5327 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31 07:59:06 +00:00
Nanang Izzuddin 24727fd6c5 Re #1918:
- Fixed issue of cannot make/receive call after previous call initialization fails due to STUN error, reproducing steps:
   1. Configure an account with acc->cfg.media_stun_use set PJSUA_STUN_RETRY_ON_FAILURE.
   2. Start pjsua with STUN servers A and B configured. On startup, both STUN servers A and B are available, so PJSIP will use STUN server A
   3. Both STUN server A and B become unavailable
   4. Make an outgoing call.
   5. Pjsua first tries with STUN server A, fails
   6. Pjsua then retry with STUN server B, still fails
   7. PJSIP then aborts the call with error (which is desired!)
   8. Both STUN server A and B become available again
   9. User tries to dial or receive an incoming call, but cannot because the last STUN server status is stored and used in making/receiving call without retrying to resolve STUN server.
 - Fixed deadlock issues.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5326 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31 04:28:00 +00:00
Sauw Ming 0700b8cb95 Re #1917: Related to ticket #1311, sets the factory on transports created as a result of an accept as well.
Thanks to George Joseph for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5325 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31 00:18:46 +00:00
Nanang Izzuddin 2b72df7f18 Misc (re #1917): Reset media provisional count in adding video after media initialization fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5324 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-30 06:09:22 +00:00
Riza Sulistyo 69cd9b1fd2 Re #1923: Delay call-hangup triggered from simulated onIncomingCall() to avoid assertion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5323 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-27 02:55:12 +00:00
Sauw Ming 54c9ab94b1 Re #1921: Fixed wrong checks in determining IPv6 transport types
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5322 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-26 06:03:43 +00:00
Nanang Izzuddin 8c0e9f3dbe Misc (re #1917): Missed inline implementation of pjmedia_snd_get_dev_count(), see also #1907 (thanks Marcus Froeschl for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5321 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-26 04:51:07 +00:00
Nanang Izzuddin e350feef33 Misc (re #1917): Disable ALSA audio device backend on BB10 in config_site_sample.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5320 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 12:31:47 +00:00
Nanang Izzuddin d24cb4dc6b Fix #1925: pj_getaddrinfo() should invoke getaddrinfo() even when IP address is inputted, except on Windows Mobile platforms (see #458).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5319 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 08:38:49 +00:00
Nanang Izzuddin b4320dd18b Misc (re #1917): Fixed pjsua build error of 'exception handling disabled' on Android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5318 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 07:30:46 +00:00
Sauw Ming 2cdf297769 Re #1917 (misc): Suppress empty-body warning and "logical not is only applied to the left hand side of this comparison" warning
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5317 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 06:33:26 +00:00
Nanang Izzuddin 809ae0d1bf Fix #1924: Put check whether dialog has been registered to pjsip UA before calling pjsip_ua_unregister_dlg() to avoid assertion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5316 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 05:25:12 +00:00
Riza Sulistyo 47b7aeb2b2 Re #1917(misc): Update how PJMEDIA_VIDEO_DEV_HAS_OPENGL is define.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5315 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 04:31:29 +00:00
Nanang Izzuddin a61e3bee3e Fix #1923: Delay call-answer triggered from simulated onIncomingCall() to avoid assertion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5314 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-24 07:37:16 +00:00
Nanang Izzuddin 0b56a55dc3 Misc (re #1917): Added capability of receiving incoming call in pjsua2_demo.cpp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5313 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-24 07:13:44 +00:00
Riza Sulistyo 8d70225a1c Re #1917(misc): Fix tpipv6.h not found when enabling IPv6 on Visual Studio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5312 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-20 07:19:26 +00:00
Sauw Ming 3733338bc1 Re #1922: Replace IPv4 specific APIs as per Apple's recommendations
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5311 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-20 04:17:00 +00:00
Riza Sulistyo f8118597b0 Re #1917 (misc): Replace obsolete command (since autoconf 2) on aconfigure.ac.
Thanks to Alexander Traud for the patch. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5310 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-19 10:38:47 +00:00
Riza Sulistyo 205fac5b22 Re #1917 (misc): Change how PJMEDIA_VIDEO_DEV_SDL_HAS_OPENGL is declared in config.h. It needs to be enabled manually.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5309 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-19 10:31:48 +00:00
Sauw Ming 4048dad7c5 Fixed #1921: Add support to handle IPv6 transports in pjsua_transport API and transport keep alive
Also:
- add more detailed transport info for TCP and TLS transport
- fixed pjsua sample app which tries to get IPv4 local address from IPv6 transport.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5308 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-19 06:55:16 +00:00
Riza Sulistyo 6fbf7ce59b Re #1918: Fixed continous looping when trying to resolve STUN server due to lock handling.
Also move the unusable server to the least prioritize to be chosen on the fallback process.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5307 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-19 04:30:05 +00:00
Riza Sulistyo a43bfb036b Re #1920: Avoid linking error when video is not enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5306 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-18 10:11:53 +00:00
Riza Sulistyo 45a0a37a55 Re #1920: Update how keyframe is detected on FFMpeg codec, since
AVCodecContext.coded_frame is deprecated.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5305 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-18 07:50:15 +00:00
Riza Sulistyo ffe13e6e01 Re #1920: Check for libavformat instead of libavcodec when setting
PJMEDIA_HAS_FFMPEG_CODEC.

ffmpeg_vid_codecs.c has a compile-time guard of PJMEDIA_HAS_FFMPEG_VID_CODEC
which is PJMEDIA_HAS_FFMPEG_CODEC which is PJMEDIA_HAS_LIBAVCODEC.
However, the code requires libavutil, libavcodec, and libavformat.
In Ubuntu (and Debian), the package libavformat-dev contains
libavcodec-dev and libavutil-dev.
Not the other way around. Therefore, the current compile-time guard is
not sufficient and should check PJMEDIA_HAS_LIBAVFORMAT instead.

Thanks to Alexander Traud for the patch.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5304 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 16:14:36 +00:00
Riza Sulistyo f2735eb226 Re #1920: Fix typo on configuration script when trying to detect FFMpeg
package (libavdevice).

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5303 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 16:01:59 +00:00
Riza Sulistyo a5946eb512 Re #1920: Since FFmpeg version 0.7 (June 2011), the struct AVFormatParameters,
the function av_open_input_stream, and function av_close_input_stream
are deprecated. With FFmpeg 0.11, those three symbols were removed.

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5302 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 15:54:14 +00:00
Riza Sulistyo 0f529759d7 Re #1920: In the development branch of FFmpeg 0.8 (in July 2010), a new library
was created AVCore. Just a half year later (February 2011), AVCore was
merged into AVUtil (52.38.0).

Furthermore, nothing in pjproject uses libavcore. Therefore, it is save
to remove all references to that library.

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5301 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 15:25:51 +00:00
Riza Sulistyo d8624d5d44 Re #1917(misc): When enabling libsamplerate, the current source code expects to
have the already installed package "libsamplerate" in the  third-party directory
of pjproject. The patch changes this.

Thanks to  Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5300 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 14:31:10 +00:00
Riza Sulistyo a15a59208c Re #1917(misc): Update README.txt including the one on third_party folder.
Thanks to Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5299 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 10:03:32 +00:00
Nanang Izzuddin d5083ec7f8 Re #1900: Various fixes in sock_uwp.cpp, mostly about error/exception handlings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5298 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 08:51:14 +00:00
Sauw Ming 7d9c54d2b5 Fixed #1918: Add API to update STUN servers and option to retry STUN for media on failure
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5297 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13 10:56:48 +00:00
Sauw Ming 48b7909aed Re #1917 (misc): Fixed memory leak in pj_stun_sock_start() if pj_getaddrinfo() fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5296 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13 07:46:17 +00:00
Sauw Ming 7af79a2ddc Re #1917 (misc): Fixed pj_getaddrinfo()'s CFHost version (such as on iOS) which may return truncated IP address if (af == PJ_AF_UNSPEC) and the address is of IPv6 family.
Thanks to Johan Lantz for the fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5295 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13 01:24:03 +00:00
Nanang Izzuddin df67f9a06f Changed version to 2.5-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5294 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 08:58:37 +00:00
Nanang Izzuddin afa08c8dae Changed version to 2.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5292 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 07:05:03 +00:00
Sauw Ming 61ad8bd388 Re #1882 (misc): re r5290, wrong value of Enable Bitcode setting, should be NO
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5291 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 04:54:16 +00:00
Sauw Ming 346320a2c7 Re #1882 (misc): Set Enable bitcode to No in ipjsua sample app for iOS
For future reference about bitcode: https://developer.apple.com/library/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html#//apple_ref/doc/uid/TP40012582-CH35-SW2



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5290 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 04:51:57 +00:00
Nanang Izzuddin d8b32fc020 Re #1906: Fixed build error 'lib !PortAudio not found' in project Samples on MSVC2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5289 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 03:15:12 +00:00
Riza Sulistyo 791fad8914 Fixed #1914: onCreateMediaTransport() callback might not be called on PJSUA2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5288 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 14:58:41 +00:00
Nanang Izzuddin d9cfd74b13 Misc (re #1882): Fixed build warning on Android: narrowing conversion of long uint to long int.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5287 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 10:38:05 +00:00
Nanang Izzuddin ca9271d5f6 Re #1897: Updated ffmpeg_vid_codecs.c to support older ffmpeg.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5286 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 07:56:16 +00:00
Riza Sulistyo 39391e025b Misc (re #1882): Fixed buffer size not sufficient when setting cipher list.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5285 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 06:32:30 +00:00
Nanang Izzuddin 4123ec4ffd Close #1915: Added API pjsip_udp_transport_start2() that can create both IPv4 and IPv6 SIP UDP transports.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5284 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 05:13:57 +00:00
Riza Sulistyo 4a4d95c8f4 Fixed #1914: Ignore STUN error after pjstun_get_mapped_addr2().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5283 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-09 06:58:29 +00:00
Sauw Ming 0ced8c9cdd Fixed #1913: Add callback for address change notification from STUN keep alive
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5282 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-09 03:29:28 +00:00
Nanang Izzuddin 43afb3f280 Misc (re #1882): Update Python setup.py to get 'make' from environment variable MAKE, if it doesn't exist, just use 'make'. On some systems, such as FreeBSD, default 'make' command is not GNU compatible.
Thanks George Joseph for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5281 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-03 04:27:07 +00:00
Sauw Ming 86e2acfa2f Re #1882 (misc): Removed stripping of '[]' from pvalue header parameters.
The stripping of '[]' from header parameters causes issues if
something (like a port) occurrs after the final ']'.

'[2001🅰️:b]' will correctly parse to '2001🅰️:b'
'[2001🅰️:b]:8080' will correctly parse to '2001🅰️:b' but the scanner is left
with ':8080' and parsing stops with a syntax error.

Thanks to Anthony Messina and George Joseph for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5280 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-20 01:58:15 +00:00
Sauw Ming 05e7353bbf Re #1882 (misc): Removed extraneous (and possibly inaccurate) log when subscribing/unsubscribing presence in pjsua_pres
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5279 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-20 01:45:47 +00:00
Sauw Ming 93d91683f2 Re #1882 (misc): Add implementation to call Endpoint::onSelectAccount() callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5278 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-19 07:29:54 +00:00
Riza Sulistyo 77b7415ecf Fixed #1912: Build Error on Alpine linux (musl libc).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5277 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-13 06:24:48 +00:00
Riza Sulistyo 9b39f3182a Re #1882 (misc): Error raised from aconfigure on CentOS6(autoconf 2.63) related to opencore-amrnb.
Thanks to George Joseph for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5276 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-12 07:46:12 +00:00
Riza Sulistyo 167c2cdb24 Re #1882 (misc): Incorrect use of pjsip_VIA_PARAM_SPEC on sip_parser.c. Thanks to George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5275 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-11 03:22:30 +00:00
Sauw Ming d84587ed8e Fixed #1911: Callback onCallSdpCreated() (pjsua2) doesn't modify the SDP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5274 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-06 08:15:45 +00:00
Riza Sulistyo a39f16728d Re #1908: Implement new API to open speaker only in pjsua/pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5273 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-04 01:44:10 +00:00
Riza Sulistyo 97359dea42 Re #1909: Fixed crash related to r5264.
- pj_generate_unique_string() expecting the user to specify the slen of the output string, this will lead to assert on pj_strncpy() if not set
- modify PJ_GUID_STRING_LENGTH to 36



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5272 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-01 02:34:48 +00:00
Nanang Izzuddin 5a7e650edb Re #1897: Updated ffmpeg_util.h/.c to support older ffmpeg.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5271 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-24 13:16:25 +00:00
Nanang Izzuddin 6dda95fea0 Re #1609: Minor fix in configure scripts in ALSA detection message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5270 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-23 11:57:41 +00:00
Nanang Izzuddin 601508ce50 Re #1906: Fixed configure script error due to missing PortAudio makefile.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5269 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-23 11:37:51 +00:00
Nanang Izzuddin 17e3246fc8 Close #1906: Removed PortAudio from PJSIP source package.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5268 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-23 07:52:41 +00:00
Riza Sulistyo 3704a6368a Re #1907: Updated VS2015 build settings, added the new files audio/videodev.h/c.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5267 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-18 07:42:09 +00:00
Riza Sulistyo 1c86b2bcdb Re #1847: Fixed VS2015 project file and filters.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5266 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-18 07:09:21 +00:00
Sauw Ming c290cf2c07 Re #1882 (misc): Fixed crash caused by typo when initializing pjsua_msg_data
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5265 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-17 03:37:13 +00:00
Sauw Ming 46c6578883 Fixed #1909: GUID implementation for Android.
Thanks to Johan Lantz for the contribution.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5264 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-17 02:56:27 +00:00
Sauw Ming b6779d4f7e Re #1882 (misc): Fixed library open error on Android when using SDK version 23 and warning: library has invalid DT_NEEDED entry for SDK version below 23
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5263 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-16 10:47:27 +00:00
Sauw Ming 4a63985cfd Re #1847: Fixed build error in Android due to the presence of another identically-named header err.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5262 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-16 01:33:01 +00:00
Nanang Izzuddin 85e9048e84 Close #1847: Upgraded libsrtp version to 1.5.4 and added support for AES-CM-256 crypto.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5261 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-15 03:57:39 +00:00
Nanang Izzuddin df1b7f092a Re #1907: Updated VS2005 build settings, added the new files audio/videodev.h/c.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5260 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-14 07:59:38 +00:00
Nanang Izzuddin 5eea7d96f9 Misc (re #1882): Fixed crash due to insufficient buffer in printing video device capabilities and formats in pjsua app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5259 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-14 06:40:45 +00:00
Nanang Izzuddin cfd8536214 Misc (re #1882): Fixed CLI-telnet log level check in log printing, i.e: log level is by default set to 4, but it didn't print log messages with level 4.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5258 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-14 02:46:29 +00:00
Sauw Ming f3790cfd24 Re #1907: Fixed build error: undeclared variables PJMEDIA_VID_DEV_MAX_DRIVERS and PJMEDIA_VID_DEV_MAX_DEVS when PJMEDIA_HAS_VIDEO is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5257 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-11 12:43:59 +00:00
Nanang Izzuddin 31c9c139fd Re #1900:
- Works on UWP socket & ioqueue.
 - Media transport UDP: cancel any pending send on detach, otherwise there is possibility that send buffer is already freed by application (stream) when the send op starts.
 - Ioqueue common abs: rename 'generic' as it seems to be a keyword in C++/CX, fixed #if/#endif possition in ioqueue_init_key().
 - pjsua GUI app: fixed thread registration status check.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5256 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-11 04:17:32 +00:00
Sauw Ming b1f406ce4f Fixed #1907: Remove pjmedia* circular dependency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5255 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-10 05:02:07 +00:00
Riza Sulistyo 4660ce3230 Re: #1900:
- Add new property file (pjproject-vs14-api-def.props) to define the API used
- Add ioqueue specific to uwp using winRT networking API
- Add uwp GUI sample APP using Voip architecture
- Add async activation for wasapi dev



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5254 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-07 23:15:34 +00:00
Benny Prijono 0b33ce5ea5 Misc (Re #1882): encdec print the bitrate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5253 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-04 08:41:42 +00:00
Sauw Ming 7593af6e52 Fixed #1905: assertion in call redirection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5252 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-03 08:30:56 +00:00
Nanang Izzuddin 21b28984d8 Misc (Re #1882): Fixed crash in sample app encdec.c due to insufficient buffer when using codec with clockrate > 16000Hz.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5251 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-03 08:05:55 +00:00
Sauw Ming 00f9ffc906 Re #1882 (misc): Fixed Rseq to start from 1 (instead of from 0).
According to RFC 3262:
... MUST include an RSeq header field.  The value
   of the header field for the first reliable provisional response in a
   transaction MUST be between 1 and 2**31 - 1.

Thanks to Marcus Froeschl for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5250 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-03 06:28:19 +00:00
Sauw Ming 5e31878b04 Re #1882 (misc): Various IPv6 fixes:
- For contact rewrite feature, when contact address is IPv6, it shouldn't be replaced with IPv4 address
 - If tp_type is already of type IPv6, adding it with PJSIP_TRANSPORT_IPV6 will result in an invalid transport type
 - Add check if pj_getaddrinfo() returns zero address.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5249 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-29 08:24:58 +00:00
Sauw Ming adc3b7f54f Re #1882 (misc): Fixed a bug in Android sound device backends which prevent them to create a unidirectional stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5248 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-29 01:10:21 +00:00
Nanang Izzuddin a2eac68457 Misc (re #1882): Updated ioqueue epoll related vars in build config, e.g: update 'ac_linux_poll' value, introduce PJ_HAS_LINUX_EPOLL flag (thanks George Joseph for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5247 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-25 04:54:17 +00:00
Nanang Izzuddin b66f6b011b Fix #1311: Updated pjsip_tpmgr_acquire_transport2() to look up from transport hash table (instead of always create a new one) when transport selector is set to TCP/TLS listener (thanks George Joseph for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5246 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-25 04:38:34 +00:00
Nanang Izzuddin 210a883eb6 Misc (#1882): Fixed compile error on VS2005 due to double semicolons.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5245 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-23 06:10:03 +00:00
Nanang Izzuddin f6a3db2105 Misc (re #1882): Updated log level (from 1 or 2 to 3) for some error messages that are transient, recoverable, or handled with return codes (thanks George Joseph for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5244 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-22 13:36:31 +00:00
Riza Sulistyo 68cd329856 Misc (Re #1882): When finding a dialog, use normal check for the dialog id instead an assertion check. Thanks for Andrey Kovalenko for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5243 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-19 03:16:24 +00:00
Riza Sulistyo c58101bb69 Misc (Re #1882): Add compile time option (PJMEDIA_HAS_DTMF_FLASH) to enable/disable DTMF flash as specified in rfc2833.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5242 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-18 03:15:19 +00:00
Nanang Izzuddin 4b36447313 Fixed #1902:
- Crash when endpoint has multiple worker threads and SIP TCP transport is disconnected during incoming call handling.
 - Deprecated pjsip_dlg_create_uas(), replaced by pjsip_dlg_create_uas_and_inc_lock().
 - Serialized transaction state notifications (of 'terminated' and 'destroyed') in case of transport error.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5241 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-05 04:29:17 +00:00
Nanang Izzuddin e505396679 Misc (re #1882): Added exception catch in Call destructor.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5240 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-04 09:31:01 +00:00
Sauw Ming d3ece1d774 Fixed #1904: Support for Opus codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5239 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-04 06:11:58 +00:00
Riza Sulistyo f748884498 Misc (Re #1882): Add raw certificate information to pj_ssl_cert_info data. Thanks to Peter Koletzki for the suggestion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5238 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-27 09:55:13 +00:00
Riza Sulistyo 7a17ad14ef Misc (Re #1882): When server sends blank realm on the Authentication challanges, the stack doesn't include the realm param.
And hence, the server will reject the request. This patch will include the blank realm on the next request.
Thanks to Keith Hanaway for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5237 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-27 05:42:20 +00:00
Nanang Izzuddin 8cacacf6bd Misc (re #1882): Suppress EAGAIN recv() error log in pjmedia stream.c & vid_stream.c (thanks Christian Ambach for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5234 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-15 03:32:26 +00:00
Riza Sulistyo ff0f0ba6e8 Re #1903: Fix crash when cleaning STUN response cache.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5233 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-05 14:34:22 +00:00
Riza Sulistyo 7c0e0d7d76 Re #1882 (misc): Crash when answering call with reason field is set. Thanks to Dan Wright for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5232 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-05 14:24:26 +00:00
Sauw Ming 3811a7bf42 Re #1882 (misc): Add checks as ssocket_cli and state_cli can be NULL
Thanks to Dusan Klinec for the original patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5231 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 10:28:19 +00:00
Sauw Ming 94df1dfb8b Re #1882 (misc): close socket on error after calling pj_sock_getsockname() as it was closed above on error after calling get_published_name()
Thanks to Dusan Klinec for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5230 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 05:25:45 +00:00
Sauw Ming e7469c2232 Re #1882 (misc): Add assertion checks in pj_strncpy() and pj_strncpy_with_null(). When max is negative, it may go undetected and cause crash since it will be cast to an unsigned when calling pj_memcpy().
Thanks to Dusan Klinec for the suggestion.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5229 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 05:06:03 +00:00
Sauw Ming 45e48e2de5 Re #1882 (misc): should check nscount (instead of anscount) when iterating ns values.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5228 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 04:06:02 +00:00
Sauw Ming ac21a91726 Re #1882 (misc): Use cred->cnonce instead of cnonce when calling pjsip_auth_create_digest(), since cnonce can be null
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5227 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 04:03:37 +00:00
Sauw Ming 9e18f15b22 Re #1882 (misc): Fixed incorrect loop when destroying streams in case of non-successful stream creation.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5226 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 02:04:52 +00:00
Sauw Ming 5552e405b9 Re #1882 (misc): re r5222, fixed string truncation length checking (the string is null terminated) in srtp.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5225 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 01:59:35 +00:00
Sauw Ming e005b0f86d Re #1882 (misc): Add checking before calling pj_strncpy(), to make it more robust and consistent with the other two checks below.
Note that without the check, it should be safe, but the buffer could point to one byte after the buffer, even though the string length is zero.

Thanks to Dusan Klinec for the proposed patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5224 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 23:52:54 +00:00
Sauw Ming 52b25f01f1 Re #1882 (misc): Moved checking of header count earlier when parsing generic array header in sip_parser.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5223 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 04:07:28 +00:00
Sauw Ming 00a04b3e3b Re #1882 (misc): Fixed string truncation length checking in srtp (note that this is a third party source).
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5222 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 04:00:39 +00:00
Sauw Ming b3b6caa2cf Re #1882 (misc): Fixed potential out-of-bound array access in ice_session.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5221 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 03:44:12 +00:00
Sauw Ming ce2ce483a8 Re #1882 (misc): Fixed incorrect sizeof argument when using pj_bzero() and pj_memcpy() in ssl_sock_ossl.c
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5220 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 03:40:16 +00:00
Sauw Ming d1c6a486ad Re #1882 (misc): Add checking of crypto name in transport srtp.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5219 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 03:35:53 +00:00
Sauw Ming fcafdd7aff Re #1882 (misc): Fixed missing comma in timer names string array. Thanks to Dusan Klinec for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5218 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 03:33:53 +00:00
Nanang Izzuddin eac69a61c3 Misc (re #1882): Fixed bug STUN still being used in media transport UDP & ICE after STUN is disabled in account config (media_stun_use == PJSUA_STUN_USE_DISABLED).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5217 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-24 12:25:58 +00:00
Nanang Izzuddin cdb73f16ce Misc (re #1882): Fixed wrong specifier used in ssl_sock_ossl.c (should be 'PJ_DEF' instead of 'PJ_DECL').
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5216 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-23 04:33:42 +00:00
Riza Sulistyo c20e1c8d3c Re #1882 (misc): Check for duplicate entry when building list of ICE host candidate. Thanks to Dusan Klenic for the original patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5215 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-16 03:58:09 +00:00
Sauw Ming 2d446d8810 Fixed #1901: crash when async_cnt is set to a value greater than one for SIP TLS transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5214 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-11 04:59:56 +00:00
Sauw Ming 853c2c686a Re #1882 (misc): Fixed configure-android shell script error on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5213 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-11 03:55:01 +00:00
Sauw Ming e6932462d2 Re #1882 (misc): Removed unnecessary callback setting for TLS listeners
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5212 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-10 07:12:06 +00:00
Riza Sulistyo 88945cd7ba Re #1900: add missing file (pjproject-vs14-common-targets.targets).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5211 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-10 02:29:44 +00:00
Riza Sulistyo e67887e55e Re #1900: Initial implementation with pjsua cli/telnet sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5210 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-10 01:58:38 +00:00
Sauw Ming 828d35b161 Re #1882 (misc): Fixed uninitialized mainThreadOnly variable in UaConfig
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5209 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-09 14:06:56 +00:00
Riza Sulistyo e851ae5081 Creating wp8 and uwp branch
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5208 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-09 12:50:14 +00:00
Sauw Ming 375744e85c Re #1882 (misc): Fixed bug in SipTransaction::fromPj(pjsip_transaction &) which do not copy the state variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5207 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-08 11:25:45 +00:00
Nanang Izzuddin 6f9bfc6993 Misc (re #1882): Added feature of CDATA content handling into XML parser.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5206 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-03 11:43:58 +00:00
Nanang Izzuddin 051099f3ab Fix #1899: Updated pjsua behaviour to re-create stream even when SDP direction attribute is inactive, as long as media port is not zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5205 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-03 11:33:25 +00:00
Nanang Izzuddin 6ed4dff9a6 Misc (re #1882): Need to zero-fill pj_thread_desc in libRegisterThread() to avoid assertion in pj_thread_register() due to accidentally recognized as reused descriptor.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5204 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-01 09:01:39 +00:00
Nanang Izzuddin bc2f742bbf Misc (re #1882): Added include header guard to pjnath.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5203 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-01 07:04:45 +00:00
Riza Sulistyo e545375f48 Re #1882 (misc): Fix bug in parser,which may loop infinitely when it doesn't fine the required character.
Thanks to Oleg Grazhdan for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5202 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-26 04:35:06 +00:00
Sauw Ming c46656e2bc Re #1882 (misc): Configurable audio device name length
Thanks to Wolfgang Wallhäuser for the original patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5201 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-19 04:03:00 +00:00
Nanang Izzuddin 08b4ec96ec Fix #1898: If transport is being shutdown/destroyed and connected event comes, proceed as error/cancelled connect.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5200 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-16 04:42:42 +00:00
Nanang Izzuddin eeca9e82e7 Re #1896: Updated default audio device backends: mingw uses WMME, linux/*nix uses alsa (if available).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5199 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-10 10:36:14 +00:00
Riza Sulistyo b34c4f8680 Re #1897: Implement support to Ffmpeg 2.8.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5198 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-10 05:28:47 +00:00
Nanang Izzuddin a9a3238ed9 Close #1896: Update default audio device backend on MacOS to CoreAudio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5197 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-09 10:28:16 +00:00
Nanang Izzuddin 0c9dd1d3d0 Re #1894: Fixed high socket descriptor check in ioqueue select, it should be against FD_SETSIZE instead of PJ_IOQUEUE_MAX_HANDLES, as PJ_IOQUEUE_MAX_HANDLES can be lower than FD_SETSIZE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5196 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06 11:36:06 +00:00
Riza Sulistyo a04656bb9d Re #1895: Terminate subscription when receiving non 2xx Notify response without Retry-After header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5195 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06 07:55:38 +00:00
Nanang Izzuddin af48998e29 Close #1894: Improve ioqueue performance on multithreadeded environment.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5194 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06 04:18:46 +00:00
Sauw Ming 649d3c58e3 Re #1882 (misc): related to r5192, fixed inaccurate index checking in pjmedia_sdp_attr_find() as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5193 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-30 00:37:14 +00:00
Sauw Ming 7416bdc608 Re #1882 (misc): Fixed inaccurate index checking assertion when removing SDP attributes in pjmedia_sdp_attr_remove() and pjmedia_sdp_attr_remove_all()
Thanks to Fredrik Hansson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5192 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-29 01:27:02 +00:00
Nanang Izzuddin ed308eb03f Misc (re #1882): Only check 'hide' URI parameter on SIP/SIPS URIs in printing route header, otherwise it may cause crash as other URI types may not have 'other_param' field (thanks thanks Fredrik Hansson for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5191 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23 09:50:16 +00:00
Nanang Izzuddin 786c6140a3 Misc (re #1882): Added array length check before inserting parsed bandwidth & attribute info to SDP structure (thanks Fredrik Hansson for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5190 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23 09:45:48 +00:00
Nanang Izzuddin 9093e07fad Misc (re #1882): Updated libresample makefile to also generate shared library when configure param '--enable-resample-dll' (see also #1462) is specified.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5189 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23 08:05:12 +00:00
Sauw Ming aa4c388fbe Fixed #1873: iOS application getting killed after pjsua fail to release a disconnected transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5188 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-08 08:55:52 +00:00
Sauw Ming b5c5b7fc25 Re #1882 (misc): Fixed possibly incorrect stream stats
When a codec is opened, it can modify its param (such as iLBC can normalize its frame ptime based on remote SDP), so the stream stats has to be updated accordingly.

Also in this fix is to increase the log level which shows the info of iLBC mode opened.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5187 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-07 03:57:17 +00:00
Sauw Ming 4021214257 Fixed #1888: Support for WebRtc AEC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5186 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-06 05:57:51 +00:00
Nanang Izzuddin 04ecb0376e Close #1892: Add pjsua/pjsua2 callback on_call_tx_offer()/Call::onCallTxOffer() to notify incoming re-INVITE without offer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5185 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-02 02:08:17 +00:00
Nanang Izzuddin 7cbdf0bcb1 Fix #1891: Also match base address in find local candidate after receiving ICE check response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5184 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-01 04:43:28 +00:00
Nanang Izzuddin dcff08bc69 Fix #1889: DNS parser should return error on RR class != IN only when RR type is known.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5183 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-29 08:38:42 +00:00
Nanang Izzuddin 602a176bf9 Fix #1887: Feed only one PCM input frame at a time to iOS iLBC encoder.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5182 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-28 05:54:25 +00:00
Riza Sulistyo 5a5522dc6e Re #1881: Add filters file.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5181 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-21 05:25:04 +00:00
Sauw Ming 03134a7e92 Fixed #1886: Ddestruction of locked mutex in SIP dialog
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5180 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-17 06:11:01 +00:00
Sauw Ming a1ea97fd64 Re #1882 (misc): Related to r4852 and r4857, fixed problem in reopening sound device after setting it to null device
Thanks to Fredrik Hansson for the report and patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5179 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-17 03:44:17 +00:00
Nanang Izzuddin b8c96cf845 Re #1885: Fixed race condition in evsub scenario 2 (Subscription timer callback vs subscription destroy).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5178 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-11 09:44:52 +00:00
Nanang Izzuddin 1184fcff7e Re #1885: Fixed race condition in evsub scenario 1 (Subscription timeout vs subscription refresh).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5177 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-11 09:40:11 +00:00
Nanang Izzuddin c9566157a4 Misc (re #1882): Update doxygen of PJSIP_MAX_URL_SIZE as apparently it is currently much more than for logging purpose, e.g: restricting Contact header length (thanks Marcus Froeschl for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5176 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-11 02:59:01 +00:00
Nanang Izzuddin aefc097f15 Re #1881: Minor update on pjlib-util project to use default target platform version.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5175 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-11 02:12:49 +00:00
Nanang Izzuddin e2c345747f Fix #1884: Fixed silence frame length in stream (frame length calculation didn't include frame per packet).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5174 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-10 07:17:22 +00:00
Nanang Izzuddin ba2e53cbb8 Fix #1883: Check transport validity after getting transport manager lock in {{{pjsip_transport_add/dec_ref()}}} as transport may already be destroyed by other thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5173 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-09 09:24:06 +00:00
Nanang Izzuddin 0eec5fc676 Re #1881: Removed WM5 & WM6 target from VS2015 solution, also fixed libmilenage not included in some build configs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5172 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-31 01:54:45 +00:00
Sauw Ming ac38922794 Re #1882 (misc): In iOS, set the option to notify other apps upon audio session deactivation. This will be useful so other apps can return to active state and resume its audio.
Thanks to Johan Lantz for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5171 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-27 02:23:55 +00:00
Nanang Izzuddin 88358fd268 Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:45:46 +00:00
Nanang Izzuddin 710aa0cc27 Re #1881:
- Updated build output naming 'vc8' -> 'vc14' for VS2015.
 - Fixed miscelaneous warnings in VS2015 project settings.
 - Updated SVN ignore property.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5169 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:41:17 +00:00
Riza Sulistyo bcfe1aea76 Re #1881: Add Visual Studio 2015 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5168 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 14:58:04 +00:00
Riza Sulistyo 0c52ca9e9f Re #1879: Fix bug in resetVideoCodecParam when not using Video build config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5167 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 07:10:15 +00:00
Sauw Ming d3d2427ead Fixed #1880: Incorrect orientation after switching video capture or when using back camera
Included in this fix:
* Change the spec & doc of pjmedia_orient enumeration
* Change iOS sample app to rotate all video devices upon orientation change event.
* Set orientation as well when fast switching cameras (for iOS and Android)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5166 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 06:46:32 +00:00
Riza Sulistyo c6303bc81d Re #1879:
- Implement set video codec param in PJSUA2 API
- Fix bug in videoCodecEnum and updateCodecInfoList



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5165 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 06:00:46 +00:00
Riza Sulistyo 984e351df8 Changed version to 2.4.5-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5164 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-12 05:28:43 +00:00
Riza Sulistyo 9b5307b4ac Remove extra space on the revision number
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5162 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-12 04:43:50 +00:00
Riza Sulistyo 49bac29e12 Changed version to 2.4.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5160 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-12 02:39:26 +00:00
Nanang Izzuddin 4666f3ff7c Updated r5158, as it introduced more warnings on Android about unknown pragma.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5159 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-12 00:35:26 +00:00
Nanang Izzuddin 53f21945a0 Misc (re #1843): Fixed GCC compile warnings of unused variables in third-party libs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5158 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-11 07:49:25 +00:00
Nanang Izzuddin f5727fc18c Misc (re #1843): Fixed compile warnings of unused variable.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5157 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-10 09:11:39 +00:00
Nanang Izzuddin c9ced6eee6 Re #1842: Updated automated test scenarios to invoke 'make distclean' first.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5156 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-10 03:47:45 +00:00
Nanang Izzuddin a03da25961 Re #1842: Added automated test scenarios for Android and iOS 64-bit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5155 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-10 03:45:02 +00:00
Nanang Izzuddin 3bf608c631 Misc (re #1843): Fixed compile warnings of "command line option '-frtti' is valid for C++/ObjC++ but not for C" on "make depend" for Android targets.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5154 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-07 12:52:09 +00:00
Sauw Ming 999cce3eb6 Re #1843 (misc): Fixed wrong calculation of timestamp in L16 codec (should be multiplied by samples per frame instead of frame size).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5153 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-07 09:22:32 +00:00
Sauw Ming 9f5af4a020 Fixed #1878: Compile time option for TCP/TLS transport to not create a listener
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5152 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-07 09:00:52 +00:00
Sauw Ming 52d41c713a Fixed #1877: Race condition between stopping ICE and sending data in ICE stream transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5151 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-07 05:44:40 +00:00
Sauw Ming 464a116faf Re #1870: Modified the last identifier of the build triplet from darwin to darwin_ios to distinguish between iOS and MacOS platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5150 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-06 09:15:11 +00:00
Nanang Izzuddin a0ca842333 Fix #1876: Don't restart renderer when only fps is changing, just modify the clock instead.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5149 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-06 07:10:33 +00:00
Sauw Ming 7de146bfc6 Re #1843 (misc): Fixed typo in displaying error message in importsym.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5148 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-06 06:37:49 +00:00
Sauw Ming e0581081e3 Fixed #1875: Assertion in rescheduling PJSIP retransmission
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5147 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-06 06:28:51 +00:00
Sauw Ming a223ba3e84 Fixed #1874: Truncated IPv6 address during address lookup on iOS
Thanks to Brian Walker for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5146 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-05 06:31:45 +00:00
Nanang Izzuddin 628a5c7bdd Re #1870: Fixed 64 bit arch issues on Android: pool alignment, updated suffix in lib file naming.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5145 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-05 04:26:06 +00:00
Sauw Ming b734822b51 Re #1870: Handle configuration for iPhone simulator
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5144 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-05 02:52:15 +00:00
Nanang Izzuddin 8ab35b9eee Fixed #1873: Only reset account transport pointer after a successful unregistration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5143 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-31 11:35:20 +00:00
Nanang Izzuddin a7b4d5c1e2 Close #1872:
- Moved iOS audio session category setting to factory initialisation, with option of enabling bluetooth by default.
 - Also set audio session mode to AVAudioSessionModeVoiceChat.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5142 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-31 08:35:34 +00:00
Nanang Izzuddin 563ea87359 Misc (re #1843): Fixed compile error in app samples on some compiler due to implicit conversion of 'void *' to 'pj_pool_t *'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5141 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-31 07:18:33 +00:00
Nanang Izzuddin 92444fe4ba Fix #1871: fixed missing audio index normalization in audio device open functions.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5140 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-31 07:12:36 +00:00
Riza Sulistyo 69509cc9aa Re #1863: Add missing video Device API.
- refresh device list, lookup dev, cap name, set/get capabilities



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5139 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-30 13:42:51 +00:00
Sauw Ming 93efad4c9b Fixed #1861: Add support for video capture orientation on Android
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5138 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-30 06:23:35 +00:00
Nanang Izzuddin 1596803296 Re #1870: Fixed 64 bit arch issues on iOS: pool alignment, updated config.sub, updated lib/app file naming, lib dependencies on XCode.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5137 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-29 02:31:12 +00:00
Nanang Izzuddin 57d08fc50e Misc (re #1843): Fixed MSVC build error on samples app due to undefined symbol 'RAND_bytes'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5136 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-28 09:56:31 +00:00
Nanang Izzuddin bcf74d9be6 Re #1864: fixed assert and crash when remote remove and add back media lines in SDP:
- reverted back r5124 (of this ticket) and r4373 (of #1626)
 - applied another fix for #1626 as in described in the ticket desc
 - also fixed a related add/remove media issue:
    - we send an offer with 2 audio and 1 video in SDP
    - remote answers with only 1 audio in SDP
    - when we send a re-offer/re-INVITE, we have 5 media lines in our SDP (3 audio + 2 video, note 1 audio and 1 video are disabled)
    - call settings are actually maintained (2 active audio + 1 active video), just better to avoid the additional disabled media.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5135 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-14 08:38:29 +00:00
Nanang Izzuddin 64d67d7c93 Misc (re #1843): Fixed OpenH264 detection failure in configure script due to bad library order.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5134 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-14 04:12:15 +00:00
Sauw Ming 54183315ca Fixed #1869: Destroy STUN session when cleaning up STUN server resolution
Thanks to Itay Bianco for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5133 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-14 01:18:19 +00:00
Sauw Ming 4c34c04ab9 Fixed #1868: Disable serialization in pjsua2 Error class
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5132 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-13 11:14:30 +00:00
Sauw Ming 7a6113c3ec Fixed #1867: Add pjsua callback to notify when STUN resolution completes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5131 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-13 07:56:19 +00:00
Nanang Izzuddin 43a08e39bf Re #1866: Added a test scenario of sending re-invite after a failed SDP negotiation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5130 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-09 12:49:47 +00:00
Nanang Izzuddin 5b757638c3 Fix #1866: Refactored the management of initial SDP in SDP negotiator considering flip-flop memory pools used by the application/invite sesion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5129 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-08 10:17:26 +00:00
Nanang Izzuddin ee124442e4 Re #1861: Fixed compile error of 'undeclared identifier PJMEDIA_VID_DEV_MAX_DEVS' when video is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5128 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-07 04:13:14 +00:00
Nanang Izzuddin aff55c6d56 Close #1865: Start NAT type detection after first STUN server resolution succeeds to avoid blocked main thread when STUN server is down.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5127 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-06 08:51:45 +00:00
Riza Sulistyo c6df008d3f Misc (re #1843): Modify configure-android to support x86_64 and mips64 target.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5126 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-06 07:33:40 +00:00
Sauw Ming 33bd0fd547 Re #1861: Changed pjsua API for setting the orientation using a more generic API, pjsua_vid_dev_set_setting() instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5125 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-03 06:21:30 +00:00
Sauw Ming f9c3125b3a Fixed #1864: Assertion in PJSIP when remote remove and add back media lines in the SDP
Thanks to Brian Walker for the report and patch testing.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5124 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-01 04:46:26 +00:00
Riza Sulistyo bfb34064bc Re #1863: Initial implementation of PJSUA2 Video Codec API and Video Device API.
- Codec management (enum codec, set prio, get param, set param)
- Device management (enum dev, dev count, dev info).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5123 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-01 02:20:12 +00:00
Riza Sulistyo 9a4d81daf2 Misc (re #1843): Register fmt matching callbak for AMR-WB in opencore-amr implementation. Thanks to Alexander Traud for the initial patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5122 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-01 01:45:57 +00:00
Riza Sulistyo 62b47526bf Misc (re #1843): Check malloc return value on libRegisterThread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5121 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-29 04:40:26 +00:00
Riza Sulistyo 316fd0bd6b Misc (re #1843): Fix doc in endpoint class regarding the call to libDestroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5120 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-29 02:39:06 +00:00
Sauw Ming 80467f5ebc Fixed #1862: Crash on iOS when destroying an activesock and creating a new one at the same time
Thanks to Itay Bianco for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5119 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 08:53:02 +00:00
Sauw Ming b02c2cebd6 Re #1861: Initial implementation of video orientation support
- Utility to resize and rotate video frame
- Support for iOS + sample
- pjsua API to set video device's orientation



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5118 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 08:17:52 +00:00
Sauw Ming 035c0e6abc Re #1843 (misc): Add two underscores for the header definition macros to match the convention
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5117 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 04:51:59 +00:00
Sauw Ming deb04d5747 Re #1843 (misc): Removed accidental inclusion of local library search paths.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5116 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 01:39:22 +00:00
Sauw Ming 14ca0a7c0d Re #1843 (misc): Fixed potential memory corruption problem if DNS resolver receives a response with more than 8 A records.
Thank you to Oleg Grazhdan for the patch and Andrey Kovalenko for the report



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5115 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 08:49:34 +00:00
Sauw Ming a32a7af322 Fixed #1860: Modify pjmedia_sdp_neg_fmt_match() to check for encoding parameters as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5114 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 07:33:46 +00:00
Sauw Ming 30468b1d8f Re #1843 (misc): Fixed warning: address of struct will always evaluate to 'true' [-Wpointer-bool-conversion]
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5113 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 02:59:23 +00:00
Sauw Ming e64df95fb9 Re #1843 (misc): Add libyuv_neon for other arm architectures as well (instead of just armv7)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5112 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 02:34:21 +00:00
Nanang Izzuddin 802efaf43e Fixed #1859: Increment tsx group lock counter before send operation and decrement later in tsx's send_msg_callback() to avoid tsx premature destroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5111 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-19 14:43:34 +00:00
Nanang Izzuddin d3697ca8a0 Misc (re #1843): Updated docs of PJMEDIA_AUD_DEV_ROUTE_DEFAULT (default route of audio device).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5110 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-18 06:06:02 +00:00
Nanang Izzuddin 87596bc3b1 Fixed #1858: Remove extension tags (such as "100rel", "timer", "PRACK"), from Supported & Allow headers in outgoing messages (request & response), when the extension is disabled in the invite session.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5109 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-17 06:18:07 +00:00
Nanang Izzuddin eabcd70007 Misc (re #1843): Revert r5039 due to reported compile error on gcc 4.1.2 (thanks Rami Annala for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5108 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-15 05:16:31 +00:00
Riza Sulistyo 11b5fd3f66 Misc (re #1843): Fix the possibility of crash when parsing multipart message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5107 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-12 03:07:05 +00:00
Riza Sulistyo ba5ac0998f Misc (re #1843): Add index checking to some SDP attr operations. These operations use count parameter as index doesn't check the value which might lead to crash if the count param exceed PJMEDIA_MAX_SDP_ATTR.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5106 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-12 03:03:48 +00:00
Nanang Izzuddin 346e1c2f48 Misc (re #1843): Updated SIP transport TCP & TLS to get server local address info using getsockname() instead of using the listener address.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5105 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-11 12:12:21 +00:00
Riza Sulistyo ee3ce55d13 Re #1857: (Fix) BYE is not sent when 200/OK is not ACK-ed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5104 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-11 08:39:42 +00:00
Nanang Izzuddin 6b8279ca89 Close #1856: Offer only current active crypto on re-INVITE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5103 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-01 03:44:16 +00:00
Riza Sulistyo 15ba413ef8 Re #1855 (Pjsua2 Video Preview API): Add Pjsua2 Preview API and sample usage in pjsua2 app for android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5102 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-28 07:14:24 +00:00
Nanang Izzuddin a8a3d3efb6 Misc (re #1843): Updated error message in pjmedia stream & video stream upon RTP receiving failure, also avoid printing the same message repeatedly of same subsequent failures.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5101 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-28 07:07:17 +00:00
Nanang Izzuddin b0fc5390fa Misc (re #1843): Fixed missing SWIG director feature for class AudioMediaPlayer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5100 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-27 10:33:50 +00:00
Nanang Izzuddin 1ed57bc02f Fixed #1854:
- Hangup the call immediately when there is no active media, this is only for initial INVITE.
 - Stop media and destroy media transport properly upon any error.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5099 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-20 08:46:11 +00:00
Riza Sulistyo 2257df62fe Re #1850(misc) : Mistype param when calling pjmedia_vid_dev_stream_set_cap. The param passed is suppose to be pjmedia_vid_dev_hwnd.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5098 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-19 03:58:30 +00:00
Sauw Ming 2639e37da3 Fixed #1853: Add callback for dropped data in SIP transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5097 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-18 04:42:42 +00:00
Sauw Ming cb9c920537 Fixed #1852: Assertion due to premature destroy of dialog when media channel init fails during incoming call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5096 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-15 07:19:28 +00:00
Sauw Ming 58bac9a015 Re #1843 (misc): Sample app streamutil: Set the receiving payload type as well, instead of only the outgoing pt
Thanks to Chris Cox for the suggestion.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5095 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-15 06:47:00 +00:00
Sauw Ming 1a76fd63d3 Fixed #1848: SDP failed to be created when provisional media has been cleared
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5094 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-15 06:20:02 +00:00
Sauw Ming a717a79328 Re #1843 (misc): Fixed target machine auto-detection for Windows 64 platform when using Visual Studio
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5093 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-14 06:06:27 +00:00
Sauw Ming 0d9345ea53 Re #1843 (misc): Fixed incorrect memcpy size in sock_common (thanks to Richard Mudgett for the patch and Joshua Colp for the report)
If an IPv6 UDP transport is configured with a link-local address, say fe80::21c:c0ff:fe4e:1a9e%eth0, which is an invalid format for an IPv6 address, it may cause crash. The invalid format causes pjproject to use an incorrect size parameter with memcpy().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5092 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-12 01:56:29 +00:00
Sauw Ming c86505df32 Re #1843 (misc): related to r4966, remove ldl and lz from OpenSSL dependencies since both libraries are actually optional for OpenSSL, and may be unavailable in some platforms, such as BB10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5091 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-11 09:18:24 +00:00
Sauw Ming ba7fb6e179 Fixed #1851: Runtime configuration of TCP and TLS keep alive intervals
Thanks to Michele Cicciotti for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5090 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-11 05:57:50 +00:00
Sauw Ming fbeecd9473 Re #1843 (misc): Fix pjsip_tls_setting_copy to copy the ca_list_path field as well (thanks to Michele Cicciotti for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5089 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-11 03:26:30 +00:00
Nanang Izzuddin 02895671b0 Close #1850: Updated pjsua_vid_preview_start() to ignore any errors upon starting an already existed preview, just print a log, also apply the specified window handle.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5088 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-08 11:27:49 +00:00
Nanang Izzuddin d6596d91ab Close #1849: Enabled multiple TLS certificate chains (RSA+ECC+DSA) for server socket.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5087 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-07 04:48:19 +00:00
Nanang Izzuddin 0d95874914 Misc (re #1843): Fixed warning messages in 'make install' command due to multiple source file specified to 'cp' (thanks Alexander Traud for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5086 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-05 12:09:43 +00:00
Nanang Izzuddin 8c87ac03c6 Misc (re #1843): Best effort fix for compile warning of pointer-integer cast in SILK codec wrapper (thanks Alexander Traud for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5085 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-05 07:48:13 +00:00
Nanang Izzuddin 1124c0cf04 Misc (re #1843): Updated few configure script output messages for better consistency and clarity (thanks Alexander Traud for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5084 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-05 07:07:19 +00:00
Nanang Izzuddin a862f11212 Misc (re #1843): Fixed compile warnings on pjlib SSL socket with BoringSSL backend (thanks Alexander Traud for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5083 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-05 06:41:17 +00:00
Riza Sulistyo 7e2d78c5a8 Re #1848: Fix failed to create SDP which lead to crash caused by rejected HOLD request.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5082 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-05 03:49:49 +00:00
Riza Sulistyo 5d95a5cfff Re #1843: Related to r4924, allow INVITE request with unknown body in
pjsip_inv_verify_request3.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5081 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-28 14:11:52 +00:00
Riza Sulistyo 98babafa48 Re #1843: Enable OpenSSL to use legacy certificates(1024 bit root certificate) send by server.
This is supported on OpenSSL 1.0.2. Thanks to Alexander Traud for the patch.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5080 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-27 08:05:31 +00:00
Sauw Ming 513a8e4e6c Re #1843: Add support if app uses external libSRTP 1.5.x or above (thanks to Alexander Traud for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5079 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-23 23:58:22 +00:00
Sauw Ming 9331c0893b Fixed #1846: Update to use 'HIGH' ciphers as default in OpenSSL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5078 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-23 10:18:52 +00:00
Sauw Ming 70d2dfd292 Re #1845: Remove the hardcoded buffer size in one more place, to use PJ_SSL_SOCK_MAX_CIPHERS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5077 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-23 02:47:49 +00:00
Sauw Ming 3ba6b97f46 Fixed #1845: Add support if OpenSSL library has more than 100 cipher suites
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5076 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-23 02:42:49 +00:00
Sauw Ming 685b1ad1fd Re #1843: Fixed unused variable warning when using OpenCore AMR (thanks to Alexander Traud for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5075 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-22 09:03:23 +00:00
Sauw Ming fd4d53641c Re #1843:
Support compilation with OpenSSL without OpenSSLv3 support

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5074 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-22 03:43:00 +00:00
Sauw Ming d48abc7e59 Re #1843 (thanks to Alexander Traud for the patch):
Defines like OPENSSL_NO_SSL3_METHOD and OPENSSL_NO_SSL2 are set in
"include/openssl/opensslconf.h". There is no need to query the OpenSSL
libraries. If the installed library does not match the installed headers,
the system is misconfigured.

This will undo r4892



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5073 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-22 03:40:41 +00:00
Nanang Izzuddin b0220a9595 Re #1842: Still on sipp/uac-reinvite-bad-via-branch.xml, fixed missing stuff in retry scenario, e.g: sequence number increment, To tag, wait for old tsx destroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5072 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-16 04:55:25 +00:00
Nanang Izzuddin c2c2e9a7c5 Re #1842: Workaround for spurious failure in sipp/uac-reinvite-bad-via-branch.xml test, i.e: just retry the scenario. The failure is caused by race between SIPp sending re-INVITE vs transaction immediate termination (by SIP INVITE module when the session reaches CONFIRMED state).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5071 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-15 12:55:54 +00:00
Nanang Izzuddin bdbd3f2720 Fixed #1844: Replaced assertion check of component ID range with normal check.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5070 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-15 00:38:54 +00:00
Nanang Izzuddin b0bfa85487 Misc (re #1843): Fixed dependency lib order in pjsip-test Makefile. This might cause linking error when building with -DPJ_POOL_DEBUG=1 (thanks Denis Poltorak for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5069 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-14 07:41:27 +00:00
Nanang Izzuddin 78555c90ed Re #1842: Minor update on python test to reduce possibility of EADDRINUSE error in running pjsua.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5068 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 12:31:46 +00:00
Nanang Izzuddin 8d6ca24530 Re #1842:
- Updated python test driver run.py to perform stdout polling using a dedicated thread, this will increase the robustness of pattern matcing class "Expect" and remove the possibility of stucked pjsua (due to output buffer full when no stdout read polling is done).
 - Also updated other test driver and scenario accordingly.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5067 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 12:28:02 +00:00
Nanang Izzuddin 66f7e5611b Re #1842: Fixed build error on cmp_wav tool for python tests due to changed pjmedia format structure in 2.x.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5066 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 12:16:47 +00:00
Nanang Izzuddin c3246980da Re #1842: Updated pjsua app to avoid stdout buffering, and also adjusted python tests accordingly.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5065 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 12:14:02 +00:00
Sauw Ming 26d4eef986 Changed version to 2.4-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5064 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 05:11:35 +00:00
Sauw Ming fa7b335659 Changed version to 2.4
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5062 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 02:45:03 +00:00
Riza Sulistyo 24ca01f0df Misc (re #1782): Fixed build error when using PJ_POOL_DEBUG=1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5061 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-10 13:19:47 +00:00
Nanang Izzuddin d2a76eb70b Misc (re #1782): Suppress compile warnings on MSVC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5060 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-10 11:47:48 +00:00
Riza Sulistyo bf7566ef9c Misc (re #1782): Add information to pjsip_endpt_send_request documentation that the timeout param is not implemented yet.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5059 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-10 09:14:54 +00:00
Nanang Izzuddin fc34ed64de Re #1794:
- Updated G7221, the bitrate can also be set via param.info.avg_bps, this is applicable only when param.setting.dec_fmtp doesn't contain bitrate info.
 - Fixed failing codec vector test in pjmedia-test due to wrong G7221 bitrate setting.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5058 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-09 08:15:48 +00:00
Nanang Izzuddin f76a67eb72 Re #1831: Fixed bug of requested format overwritten by supported format, caused no converter is created when needed, assertion in pjmedia-test, etc. Also rearranged some related logs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5057 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-09 06:52:20 +00:00
Riza Sulistyo 006243d376 Re #1803: Add Application.mk which is necessary for ndk-build to define APP_ABI (needed for targets other than armeabi).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5056 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-09 04:29:36 +00:00
Riza Sulistyo ec369c2ffe Re #1838: Enable application to provide its own external resolver implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5055 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08 10:10:44 +00:00
Sauw Ming 519b86d54a Re #1837: Fix dispatch queue problem in iOS capture device (crash in enc_clock_cb)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5054 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08 10:09:37 +00:00
Sauw Ming 0f27138208 Re #1782 (misc): (trivial)Fixed typo in log
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5053 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08 09:09:17 +00:00
Sauw Ming 886ddb9889 Re #1835: More robust handling of format change, to prevent data race if clock is still running.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5052 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08 09:07:00 +00:00
Sauw Ming 3ddf694376 Fixed #1837: Fix premature dispatch queue release in iOS capture device
Also add more logs, error checking, and modify the auto release of video output delegate



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5051 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08 01:00:57 +00:00
Nanang Izzuddin 00a478e7a6 Close #1836: Added colorbar device with active role.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5050 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-07 11:23:41 +00:00
Riza Sulistyo 847d298a4a Misc (re #1782): Check if capturer is opened when getting window information. On slow devices (iPhone 3GS) the capturer might not be opened when the format changed is requested.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5049 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-07 09:25:07 +00:00
Riza Sulistyo 74bccbc53f Misc (re #1782): Fixed SIP error code not set properly when there's an error in initializing media channel. Thanks to Roman Kublin for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5048 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-07 02:24:47 +00:00
Sauw Ming bad6f853ef Fixed #1835: Fixed crash in iOS OpenGL renderer when in background and assertion during destruction
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5047 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-07 01:47:51 +00:00
Nanang Izzuddin bd9cef07c2 Misc (re #1782): Fixed various compile warnings on MacOS & iOS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5046 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-06 06:21:41 +00:00
Nanang Izzuddin 663d8e0dea Misc (re #1782): Fixed various compile warnings on MSVC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5045 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-06 06:13:51 +00:00
Sauw Ming 2b79e65eb9 Re #1782 (misc): Fixed activesock's lock msg w.r.t iOS background to be more precise.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5044 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-02 06:44:08 +00:00
Sauw Ming 6bec7b35d6 Re #1818: Avoid warning caused by trying to destroy a locked jb mutex in pjmedia stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5043 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-02 03:45:28 +00:00
Sauw Ming 6f19425c22 Re #1782 (misc): Prevent build error if using another ioqueue backend (such as epoll) or if using PJ_CONFIG_MAXIMUM_SIZE on platforms that do not support setting FD_SETSIZE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5042 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-01 07:50:23 +00:00
Sauw Ming 3cfd08af0d Re #1782 (misc): Improve layout in ipjsua sample app, so it can display both preview and incoming video together.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5041 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-31 04:59:54 +00:00
Nanang Izzuddin 552fad1387 Fix #1834: Fixed SDP negotiator to retain initial_sdp in pjmedia_sdp_neg_send_local_offer().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5040 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-30 09:14:43 +00:00
Sauw Ming e0e1895f57 Re #1782 (misc): suppress warning in compiling third party code: gsm.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5039 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-30 08:34:36 +00:00
Nanang Izzuddin 9c0d0af17b Re #1828: Silenced off compile warnings on PortAudio, as we lock the version and it has been tested for long time.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5038 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-27 10:20:39 +00:00
Riza Sulistyo 5cbf7aaba5 Re #1833: Support bdSound's bdiMad v2.0.0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5037 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-27 08:47:20 +00:00
Nanang Izzuddin 92be094078 Re #1832: Update Android pjsua CLI build config to automatically replace prebuilt libraries on each ndk-build invocation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5036 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-27 08:30:53 +00:00
Nanang Izzuddin b20d77c49f Re #1828: Fixed misc compile warnings (on iOS).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5035 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-27 06:17:27 +00:00
Sauw Ming d39cc28701 Re #1790: Fixed failed Android OpenGL detection if aconfigure is called with --use-ndk-cflags
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5034 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-27 02:31:49 +00:00
Riza Sulistyo eb7f722f34 Re #1831: Handle when the information of the supported format is not available.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5033 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 11:07:43 +00:00
Nanang Izzuddin 3b6d9fced1 Re #1790: Fixed error build of undefined "ANativeWindow_fromSurface()" when video is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5032 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 10:57:05 +00:00
Riza Sulistyo f142c08a84 Re #1831: Fixed matching algorithm when the supported format only have one size.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5031 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 10:38:30 +00:00
Nanang Izzuddin d980a041ba Re #1790: Misc fixes on renderer viewing in pjsua CLI app sample, e.g: handle NULL surface, handle video disabled, cleanup unused codes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5030 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 10:06:45 +00:00
Nanang Izzuddin 991d0815f3 Re #1822: Misc fix in Android video device build setting:
- fixed silly typo caused Android video device sources not being built
 - avoid copying Android camera helper codes when video is disabled



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5029 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 09:54:18 +00:00
Sauw Ming 0a41d341fc Fixed #1790: Remove unsupported capabilities and some cleanup
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5028 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 05:40:51 +00:00
Nanang Izzuddin 904be7610d Re #1822: Updated build script to auto define PJMEDIA_VIDEO_DEV_HAS_ANDROID.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5027 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 05:08:40 +00:00
Riza Sulistyo 12b3d89abc Re #1831: Implement algorithm in video port to find the best video format between the requested and supported format.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5026 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 04:14:20 +00:00
Nanang Izzuddin 9b517ec8a7 Re #1822: Re r5018, removed non cross-platform "cp" command flag "-u".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5025 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 03:17:25 +00:00
Nanang Izzuddin 848f77d73a Re #1828:
- Fixed failing regc test in pjsip-test due to modification in #1819.
 - Fixed assertion in destruction of SIP transport loop.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5024 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-26 02:51:19 +00:00
Nanang Izzuddin dd6fc888fb Re #1828: Adjust jitter buffer test data for changes in #1612.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5023 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-25 09:01:54 +00:00
Nanang Izzuddin 900e5d6f5f Re #1823: Video settings on sample apps:
- enabled video on pjsua CLI if video is configured
 - enabled video auto-rx/tx of any account on pjsua2 sample app



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5022 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-25 03:41:21 +00:00
Perry Ismangil 7d79751dad Re #1828 Temporary deactivation of failing tests to be examined in detail later on
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5021 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-24 11:02:29 +00:00
Perry Ismangil 1d2c751d57 Re #1828 Changed unit test expected to 415 to sync with other code changes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5020 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-24 09:25:12 +00:00
Nanang Izzuddin 899a4e61ca Re #1822: Fixed SVN properties on Android camera helper.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5019 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-23 06:35:45 +00:00
Nanang Izzuddin 4bddb61dbd Re #1822: Moved Android camera helper (PjCamera.java and PjCameraInfo.java) from sample app to pjmedia-video dev dir.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5018 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-23 06:28:40 +00:00
Nanang Izzuddin 335ebba0bb Misc (re #1782): Coding style works (indentation, etc) on Android pjsua2 sample app codes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5017 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 10:22:44 +00:00
Sauw Ming c52460741a Re #1790: Misc fixes:
* Fixed crash when trying to set NULL surface
* Fixed race condition between setting surface and rendering
* Fixed crash due to GC of VideoWindow



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5016 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 09:39:31 +00:00
Nanang Izzuddin b4225a2b48 Misc (re #1782): Update default OpenH264 video size for Android platforms to 352x288.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5015 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 09:07:37 +00:00
Nanang Izzuddin 013a33bf26 Re #1790:
- Removed android_opengl_get_surface() for renderer view setup, Java application can directly supply Surface object as renderer window.
 - Added renderer view on pjsua CLI app sample.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5014 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 08:53:03 +00:00
Perry Ismangil 47f3c13443 Re #1828 disabled pesq tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5013 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 08:30:44 +00:00
Sauw Ming e67656d494 Fixed #1827: Video port's clock thread may get stuck during format change event
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5012 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 07:50:28 +00:00
Perry Ismangil 7cb9340ed2 Removing XCode userdata
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5011 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 01:47:35 +00:00
Perry Ismangil d347848c6f Shared scheme for remote builds
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5010 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-21 23:23:05 +00:00
Perry Ismangil b988903fa4 Experimental adding scheme for continuous integration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5009 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-21 10:21:41 +00:00
Perry Ismangil 5e0cdf371c Added Xcode workspace for iOS app continuous integration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5008 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-21 09:53:42 +00:00
Sauw Ming 503cc8995c Re #1790: Reinitialize Android OpenGL renderer when there is format change.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5007 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-21 04:23:07 +00:00
Sauw Ming 0214c2d053 Re #1823: Related to r4996: Fixed undefined symbol error if video is not enabled. Also modify configure-android to not disable-video by default
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5006 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-20 10:23:30 +00:00
Nanang Izzuddin b058a4c57f Misc (re #1782): Setup log writer function on pjsua CLI (useful for debugging library initialization).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5005 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-20 10:19:12 +00:00
Nanang Izzuddin 31b6876606 Re #1822: Skipped FPS setting on staring Android video capturer, unsupported/non-exact range value may be rejected by some devices such as Nexus.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5004 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-20 10:15:38 +00:00
Nanang Izzuddin 5bba956ea5 Re #1822: Fixed unreleased memory pool of Android capture device stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5003 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19 12:06:14 +00:00
Riza Sulistyo 0c5a6be6b4 Re #1826: Add enum video format supported in iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5002 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19 07:03:39 +00:00
Riza Sulistyo 0df0c05c7f Re #1826: Add enum video format supported in linux (v4l2)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5001 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19 05:26:17 +00:00
Riza Sulistyo 6fc67568cc Misc (re #1782): Check if the transport being shutdown in on_accept_complete and on_connect_complete callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5000 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19 05:07:01 +00:00
Riza Sulistyo c6e9001cc7 Re #1825: Implement new on_reg_started2 callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4999 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19 04:59:23 +00:00
Nanang Izzuddin c662a0f042 Fixed #1824: Convert global index to local index for fast-switching feature of video capture device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4998 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19 04:10:11 +00:00
Sauw Ming a07c866b24 Re #1823 (pjsua2 video api): sample usage of Video Window API in pjsua2 app for android
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4997 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-18 12:02:51 +00:00
Sauw Ming 0341f920b9 Re #1823 (PJSUA2 Video API): Add Pjsua2 Video Window API and Pjsua API to set output window
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4996 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-18 08:25:24 +00:00
Sauw Ming 90ef3ff840 Re #1786: Add support to specify output window as well for video preview param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4995 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-17 09:59:42 +00:00
Nanang Izzuddin b5ab265a3c Re #1822: Initial implementation of Android video capturer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4994 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-17 04:02:44 +00:00
Nanang Izzuddin 4b06ca85cb Misc (re #1782): Applied OpenH264 CFLAGS/LDFLAGS probing result by configure script into Makefile.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4993 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-12 12:48:30 +00:00
Sauw Ming 833a87f30b Fixed #1821: Remove unnecessary locking in pjsip transaction and add new API to create a group lock with handler in a single atomic instruction
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4992 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-06 06:09:22 +00:00
Sauw Ming da1192b073 Re #1782 (misc): Suppress Helgrind's warning about possible data race when doing ioq select.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4991 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-06 06:04:21 +00:00
Sauw Ming 10c3fbbdd7 Re #1782 (misc): Fixed unitialized mutex owner variable when creating mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4990 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-05 04:12:16 +00:00
Sauw Ming cc00ea00b6 Fixed #1819: Use expiration field to indicate registration/unregistration in registration callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4989 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-03 07:52:36 +00:00
Sauw Ming 8bdb64895d Re #1818: Fixed destruction of locked mutex in sip transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4988 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-03 04:29:54 +00:00
Sauw Ming dc2989d9c1 Fixed #1818: Fixed destruction of locked mutex (thanks to Denis Poltorak for the Helgrind report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4987 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-03 02:41:27 +00:00
Sauw Ming 5c8c73b410 Fixed #1817: Automatically send BYE when sending CANCEL for INVITE is unsuccessful.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4986 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-02 09:43:20 +00:00
Nanang Izzuddin d785a202ec Fixed #1816: Restart media transport on following forked media.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4985 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-02 03:04:19 +00:00
Nanang Izzuddin 0629361e85 Misc (re #1782): Enabled G722 in config_site_sample.h for iOS and Android platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4984 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-26 04:00:44 +00:00
Sauw Ming 7e067e0ca7 Fixed #1815: Race condition of STUN transaction destruction
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4983 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-13 11:34:26 +00:00
Nanang Izzuddin 68e6d49698 Close #1814: Add audio frame preview callbacks.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4982 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-11 05:15:29 +00:00
Nanang Izzuddin 6c5fe49035 Misc (re #1782): added compile-time settings for Speex AGC & denoiser in Speex AEC, note that both are enabled by default, as previously AGC was enabled (by pjmedia, as it seems to improve AEC performance) and denoiser was also enabled by default by Speex.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4981 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-11 05:10:06 +00:00
Sauw Ming 59c9efa175 Fixed #1813: Problem with media reinitialisation when using ICE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4980 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-11 02:13:04 +00:00
Sauw Ming dff6489f6b Re #1782 (misc): Prevent buffer overrun in pjsip message/uri printing
Thanks to Sagi Iltus for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4979 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-10 03:20:04 +00:00
Sauw Ming 4fc34b0b95 Re #1790: more Android OpenGL renderer
* Fix RGBA color compatibility
* Add autodetection feature to stop rendering for consecutive failures, such as when app is in the bg
* Allow video stream to be created first and supply the output window later
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4978 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-27 05:01:15 +00:00
Sauw Ming 4d14f25e70 Re #1782 (misc): Fixed inaccurate TX packet loss percentage and stats calculation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4977 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-23 04:00:34 +00:00
Sauw Ming d29d511fb2 Re #1797: Fixes assert if 422 response is received (thanks to Brian Walker for the report)
If 422 is received, INVITE will be automatically retried, but the
provisional media has been cleaned up.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4976 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-22 08:48:32 +00:00
Sauw Ming ad90ef5f8f Re #1782 (misc): Do not include SDP when sending 181 response (patch provided by Joshua Colp)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4975 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-21 04:12:27 +00:00
Sauw Ming e287ca6645 Fixed #1811: contact_use_src_port and TLS server certificate verification issue (thanks to Viktor Krikun for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4974 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-19 08:04:56 +00:00
Nanang Izzuddin 869db13381 Close #1810: Adding CA path support into SSL socket.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4973 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-15 06:55:02 +00:00
Riza Sulistyo a60233729f Re #1782 (misc): Change assert check of ssl_state to non assert check on OpenSSL wrapper implementation.
(thanks to Joshua Colp for the suggestion)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4972 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-05 04:34:17 +00:00
Nanang Izzuddin ee35c38705 Ticket #1809: Fixed DNS SRV resolver bug that application callback may be called twice.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4971 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-24 05:46:51 +00:00
Sauw Ming e5c1d8da5b Fixed #1808: Crash in pjsip_inv_terminate() (thanks to Brian Walker for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4970 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-23 03:56:28 +00:00
Nanang Izzuddin e3d0777494 Fixed #1807: Crash when shutting down library while having subscription transactions on going.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4969 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-19 14:22:35 +00:00
Riza Sulistyo 24bae56fbc Re #1806: Implement SSL/TLS setting to set protocol operation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4968 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-18 04:40:35 +00:00
Sauw Ming 92ec2fb3a7 Fixed #1805: Make UAS as refresher in session timer when UAC doesn't support it (thanks to Glenn Walbran for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4967 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-05 04:03:06 +00:00
Nanang Izzuddin 659d6e2d07 Misc (re #1782): Fixed OpenSSL detection in configure script due to incomplete dependencies and bad library order, which causes OpenSSL detection failure on some platform such as Android mips and arm64.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4966 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-03 04:16:24 +00:00
Nanang Izzuddin 2c22ed498c Misc (re #1782): Fixed bug of missing SIP header "Supported: outbound, path" after a registration failure (thanks Mateusz Olejnik for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4965 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-28 10:17:55 +00:00
Nanang Izzuddin 9dc0a0c2ad Misc (re #1782): Fixed exchanged timer I timeout value (for absorbing any additonal ACK before shifting tsx state to terminated) between reliable vs unreliable transports.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4964 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-28 08:16:51 +00:00
Nanang Izzuddin 1ad1e9aeff Fix #1804: Call should use local IP in Via sent-by when the account is not using STUN.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4963 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-25 09:53:14 +00:00
Riza Sulistyo 1b5ebbd155 Re #1782 (misc): Fixed crash when failing to create filter graph on dshow.
Thanks to Alexander Fatyanov for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4962 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-19 07:44:39 +00:00
Sauw Ming c757648f01 Re #1782 (misc): This is related to #1418: Library restart fails with PJLIB_UTIL_ESTUNNOTRESPOND error after several times. The fix r3896 in that ticket was accidentally modified during merging in r3999.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4961 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-14 02:17:06 +00:00
Sauw Ming f2607cc995 Re #1803: (Add support for Android 64 bit compilation)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4960 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-13 01:48:34 +00:00
Sauw Ming 8583303837 Re #1782 (misc):
This is related to #1249: Memory corruption bug in splitcomb. The fix r3548 in that ticket was accidentally reversed in r3664.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4959 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-10 01:44:37 +00:00
Nanang Izzuddin 80c294ea24 Misc (re #1782): Print log message when SIP UDP transport is destroyed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4958 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-07 02:32:35 +00:00
Nanang Izzuddin e9268d219f Close #1802: Configurable randomized value range for auto re-registration interval.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4957 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-04 08:00:15 +00:00
Riza Sulistyo 467195baa5 Fixed #1797: Clean up provisional media is executed when there is an ongoing SDP negotiation.
Scenario:
1. re-invite got 491, state tsx changed to completed
2. cleanup prov med executed
3. re-invite again with video
4. timer tsx to shift tsx no 1, from completed -> terminated trigger provisional cleanup 
5. provisional video transport in no 3 got cleanup



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4956 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-31 12:14:28 +00:00
Nanang Izzuddin 17b5606964 Fix #1801:
- put error check in re-registration attempt in pjsua_acc_modify(),
 - updated pjsua_acc_modify() docs about its behavior regarding unregistration and re-registration.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4955 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-27 07:36:08 +00:00
Nanang Izzuddin 53f6dd8cf1 Fix #1800: Fixed crash in SIP resolver when DNS server return a lot of addresses (> PJSIP_MAX_RESOLVED_ADDRESSES).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4954 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-24 03:28:05 +00:00
Nanang Izzuddin 59ffd6aa01 Misc (re #1782): Skip libyuv and libopenh264 lookups when passing '--disable-video' param to configure script (thanks Sean Bright for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4953 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-21 08:11:52 +00:00
Sauw Ming bc90e3d248 Fixed #1799: Fix finding highest resolution for H264
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4952 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-17 06:47:02 +00:00
Riza Sulistyo b6488abef4 Misc (re #1782): Fixed initialize Dshow failed when the COM library already initialized.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4951 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-17 03:47:40 +00:00
Sauw Ming f5e88e06b2 Re #1782 (misc): Fixed return value of AudioMedia::getTxLevel()/getRxLevel()
to be in the range of 0-100, as stated in the doc



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4950 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-17 03:25:37 +00:00
Sauw Ming 0ae5e67404 Fixed #1798: Crash upon receiving re-INVITE to restart ICE after failed STUN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4949 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-17 00:48:33 +00:00
Sauw Ming 942dab3b10 Fixed #1797: Clean up provisional media after re-invite/update
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4948 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-17 00:47:31 +00:00
Riza Sulistyo 0e1496442d Misc (re #1782): Fixed unregistration sent twice when calling pjsua_acc_modify with reg_uri is blank.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4947 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-16 10:39:35 +00:00
Sauw Ming f5e64a98e9 Re #1782 (misc): Fixed preprocessor definition of PJMEDIA_WMME_DEV_USE_MMDEVICE_API (thanks to Sean Bright for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4946 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-14 04:39:17 +00:00
Riza Sulistyo 6a7710568b Misc (re #1782): In case if STUN server is configured and NAT-traversal is in process user can delete this server from setting list. In that case in internal_stun_resolve_cb we should check that STUN server is available. (Thanks to Max Bondarenko for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4945 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-10 10:44:10 +00:00
Nanang Izzuddin e656e8fe86 Fixed #1796: Avoid infinite registration loop caused by contact rewrite.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4944 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-10 10:33:23 +00:00
Riza Sulistyo 7f4d6622aa Misc (re #1782): Fixed silly error from r4941. (Additional thanks Max Bondarenko for the original patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4943 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-10 07:21:20 +00:00
Riza Sulistyo 24ae05be91 Misc (re #1782): Avoid assertion when updating keep alive. Assert scenario: register, switchoff network adapter and immediately request unregister. This issue is intermittent. (Thanks to Alexander Fotyanov for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4942 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-09 03:51:51 +00:00
Riza Sulistyo 58acc6a4df Misc (re #1782): Support for Russian language for sound device name when using WMME. This should also work for other language with special character set. (Thanks Alexander Fatyanov for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4941 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-09 03:31:11 +00:00
Riza Sulistyo 9ee01b1fea Misc (re #1782): Update the xcode interface builder (xib) file for iPad.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4940 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-06 17:47:35 +00:00
Riza Sulistyo 8ee9d28843 Misc (re #1782): Change field name unregWaitSec to unregWaitMsec, as it represents millisecond data. (Thanks to Chris Updegraft for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4939 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-06 04:12:42 +00:00
Sauw Ming 492e963751 Re #1782 (misc): Only perform unregistration in pjsua_acc_modify() if the reg_uri is valid
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4938 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-03 05:58:32 +00:00
Sauw Ming cede6c06f2 Re #1782 (misc): Fixed bug caused by wrong order of code made in r4933 (thanks to Brian Walker for noticing this)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4937 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-02 02:45:33 +00:00
Sauw Ming f3a2d1f439 Fixed #1795: Assertion if ending 100rel session when invite on early state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4936 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-01 06:45:02 +00:00
Sauw Ming 52f4f59f2d Re #1782 (misc): Do not copy the public address and bound address if pjsua_acc_modify()'s new setting doesn't change those
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4935 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-01 04:21:55 +00:00
Sauw Ming 2f57395545 Re #1782 (misc): Clone sdp attribute fmtp and rtpmap before adding it in process_pending_reinvite()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4934 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-01 02:48:55 +00:00
Sauw Ming 0212050955 Re #1782 (misc): Fixed missing add_ref() in pjsip_tsx_retransmit_no_state() (thanks to Itay Bianco for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4933 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-01 01:33:22 +00:00
Nanang Izzuddin 55becb4ec6 [SIPit31] Misc (re #1782): Updated AMR parser behavior, i.e: from raising assertion to just printing log and also discard the whole packet, on receiving invalid AMR frame-type.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4932 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-29 10:26:08 +00:00
Nanang Izzuddin 76e5386249 Re #1794: Also fixed pjmedia_codec_g7221_set_mode() not updating endpoint codec list after enabling/disabling a mode.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4931 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-24 11:48:39 +00:00
Nanang Izzuddin 99bbf64852 Fix #1794: Fixed assertion or garbled audio in call using G.722.1:
- Updated stream info to use pjmedia_sdp_neg_fmt_match() for matching formats in SDP, so it will call codec specific match function, e.g: for G.722.1 it will match the bitrate too.
 - Workaround for 'stream uses wrong codec param for opening G.722.1' issue, it is the G.722.1 codec that check the SDP fmtp for fetching bitrate setting (instead of using avg_bps/max_bps fields in codec param).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4930 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-24 10:30:57 +00:00
Nanang Izzuddin 89f6d46b2c Close #1793: Avoid call setting flags PJSUA_CALL_UNHOLD, PJSUA_CALL_UPDATE_CONTACT, and PJSUA_CALL_NO_SDP_OFFER to be sticky or reused in the next calls of pjsua_call_reinvite/update().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4929 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-24 08:26:33 +00:00
Sauw Ming 991d91dffd Re #1790: Initial basic implementation of Android OpenGL renderer
To use it, app has to specify PJMEDIA_HAS_VIDEO to 1



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4928 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-24 04:01:34 +00:00
Sauw Ming 22cb947ee3 Fixed #1792: Create generic JNI OnLoad function
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4927 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-23 04:13:40 +00:00
Riza Sulistyo fba6e8859e Fixed #1791: Fixed possible crash when trying to cancel sdp negotiation upon receiving UPDATE response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4926 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-22 07:08:14 +00:00
Sauw Ming 331252aa44 Re #1790: Use OpenGL textures instead of platform dependent textures.
This revision contains:
 * remove the generation of iOS texture (instead directly use OpenGL textures)
 * add iOS and Android window type



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4925 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-22 07:03:25 +00:00
Riza Sulistyo e90ea2f3d8 Re #1788: Add support to allow INVITE/reINVITE with unknown body.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4924 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-17 12:11:45 +00:00
Sauw Ming 5ee3d807c8 Fixed #1783: Restart ICE if a mid-dialog re-INVITE contains no offer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4923 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-15 09:04:21 +00:00
Sauw Ming 348f3b5eab Fixed #1787: Failure of DShow device to open a certain resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4922 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-15 09:02:15 +00:00
Sauw Ming c1a554e478 Fixed #1786: Add support to specify video format when opening video preview
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4921 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-15 08:59:46 +00:00
Sauw Ming fbe4d76141 Fixed #1785: Add support for sending initial INVITE/re-INVITE/UPDATE without SDP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4920 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-09 08:31:37 +00:00
Sauw Ming 55b4ffdb87 Re #1784: Revert API change
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4919 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-09 04:25:03 +00:00
Sauw Ming 3225cba870 Fixed #1784: Remove the usage of nested structs/unions in PJSUA2 (unsupported by SWIG C++)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4918 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-09 04:10:59 +00:00
Nanang Izzuddin 4dba0d66ef Misc (re #1782): Fixed compile error of ios_opengl_dev.m on iOS 8 SDK due to missing OpenGLES headers (thanks Brian Walker for the report and the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4917 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-09 02:36:38 +00:00
Sauw Ming 00c7b04a3c Re #1782 (misc): Removes ffmpeg libraries from XCode project.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4916 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-08 03:37:30 +00:00
Nanang Izzuddin e16386431d Changed version to 2.3-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4915 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-03 11:18:02 +00:00
Nanang Izzuddin 6bed9637fb Changed version to 2.3
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4913 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-03 08:39:58 +00:00
Nanang Izzuddin 69a713c7ff Misc (#1751): Change default sound device on Android to use Android JNI (due to stuck issue with OpenSL ES).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4912 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-02 07:10:39 +00:00
Nanang Izzuddin 65219d45f0 Fix #1781: Don't update dialog route set from UPDATE response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4911 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-02 03:21:38 +00:00
Riza Sulistyo 4baa476078 Misc (re #1751): fixed printing value issue when using %02X format. (Thanks Itay Bianco for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4910 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-01 06:32:50 +00:00
Riza Sulistyo 60d6362474 Re #1762: When capturing, image stride is not always equal to the image width. I.e on Ipad air, at 352*288 the image stride is 384. Additional discard process is
needed to correct the image rendered.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4909 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-01 04:03:31 +00:00
Nanang Izzuddin 664b8debd2 Re #1757: Set OpenGL as default renderer on iOS (initialized before UIView renderer).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4908 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-26 11:01:57 +00:00
Nanang Izzuddin 1caa3194ed Re #1757: Add iOS video renderer OpenGL macro settings to config.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4907 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-26 10:53:52 +00:00
Nanang Izzuddin 3610f6f78e Re #1768: Add forced GC to libDestroy() in SWIG Java.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4906 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-26 07:27:23 +00:00
Riza Sulistyo 736ab2a480 Misc (re #1751): Avoid confusion caused by double variable declaration. (Thanks Itay Bianco for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4905 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-26 05:14:13 +00:00
Nanang Izzuddin 75e3d10632 Re #1758: update default OpenH264 video size for iPhone device to 352x288 (on 4S, 720x480 seems to be too heavy for the CPU).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4904 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-25 09:53:26 +00:00
Nanang Izzuddin f7034c6a10 Misc (re #1751): Fixed wrong pointer check in starting video render device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4903 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-25 09:46:06 +00:00
Riza Sulistyo 40a40c9dd7 Re #1762: Change alloc method for preview layer that may cause crash when releasing the object on iOS 7 (arm64).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4902 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-25 09:31:24 +00:00
Nanang Izzuddin f609626e3a Misc (re #1751): Suppress compile warnings of OpenSSL deprecation on MacOSX.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4901 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-22 01:44:29 +00:00
Nanang Izzuddin 7d62d8f246 Re #1735: Fixed missing check of "sips" scheme in request line in pjsip_inv_verify_request3().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4900 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-21 07:20:34 +00:00
Nanang Izzuddin f1d6c40d0b Close #1735: Implemented secure dialog check of "sips" scheme in Contact/Record-Route header in incoming INVITE/UPDATE requests & responses.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4899 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-21 05:58:36 +00:00
Nanang Izzuddin 2af6664626 Misc (re #1751): fixed occasional failure in pjsip-test & pjnath-test caused by resource leak.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4898 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-21 03:43:11 +00:00
Nanang Izzuddin 82b348331d Misc (re #1751): Fixed miscellaneous MSVC warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4897 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-21 03:33:36 +00:00
Riza Sulistyo 48dc26f411 Misc (re #1751): fixed sound issue on Android L(using PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI), caused by the difference in JNI array handling. (Thanks Miguel Penades for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4896 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-20 12:38:43 +00:00
Benny Prijono 30b3ed7079 Fixed #1780: Bug: STUN string attribute has zero length
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4895 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-20 10:35:29 +00:00
Benny Prijono 2ccd237527 Misc re #1751: disable one pjlib-test entry on socket address parsing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4894 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-20 06:15:23 +00:00
Benny Prijono 7653c60df5 Misc, Re #1751: fixed pjsip-test failures
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4893 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-19 07:51:46 +00:00
Sauw Ming d6ef3231d9 Re #1751 (misc): Fixed compilation error due to the lack of the SSLv2 methods.
The fix will autodetect this and define OPENSSL_NO_SSL2 if necessary. Related to #1321.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4892 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-19 02:18:07 +00:00
Sauw Ming 4b2b499402 Re #1762: Related to r4838, check whether the device supports the capture size before deciding to use it
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4891 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-19 01:37:12 +00:00
Benny Prijono d1803e61dd Re #1751: fixed miscellaneous gcc warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4890 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-19 00:54:34 +00:00
Benny Prijono 0ffb73d67c More re #1677:
- renamed the option to contact_use_src_port
 - added the missing pjsua2 API implementation


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4889 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-18 09:09:18 +00:00
Benny Prijono d2db5cca55 Closed #1677: Contact uses source port in initial registration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4888 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-18 08:54:43 +00:00
Nanang Izzuddin 567554b620 Close #1779: Add APIs for external/native thread registration to pjsua2: Endpoint::libRegisterThread() & Endpoint::libIsThreadRegistered().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4887 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-13 09:14:53 +00:00
Nanang Izzuddin c3d8f3019f Misc (re #1751): Bad typo on passthrough codec (thanks Peter Koletzki for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4886 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-13 02:57:01 +00:00
Nanang Izzuddin f992db5283 Misc (re #1751): Remove reference to PJSUA2 Call instance from PJSUA library in PJSUA2 Call destructor regardless the PJSUA state to avoid crash caused by accessing dangling pointer of the Call instance (thanks Thomas Steinacher for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4885 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-12 12:12:49 +00:00
Nanang Izzuddin 8c1674769e Misc (re #1751): Uninitialized variable 'body.tsxState.type' in PJSUA2 in SipEvent::fromPj() (thanks Thomas Steinacher for the report and the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4884 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-12 11:50:16 +00:00
Sauw Ming 4ec951caff Re #1751 (misc): Fixed incorrect usage of dev_size (should be dev_count) in coreaudio device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4883 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-28 01:43:22 +00:00
Benny Prijono c9c944a54e Misc #1751: added logging when TLS domain verification fails due to invalid use of wildcard. Thanks Alexander Traud for the patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4882 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-25 07:27:37 +00:00
Benny Prijono 29920cc74e Re #1757, re #1758: fix configure script. Now OpenGL renderer is enabled by default by the configure script. And added missing dependency to -lstdc++ for the openh274 library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4881 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-22 07:44:53 +00:00
Nanang Izzuddin 51c470c2b7 Misc (re #1751): Fixed missing initialization in pjsua2 TlsConfig::toPj() and TransportConfig::toPj() may cause transport creation failure (thanks Sneha Bansal for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4880 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-18 06:19:55 +00:00
Nanang Izzuddin 67ce8287fb Fix #1777: Problem in audio device list refresh after unregistering an audio device factory.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4879 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-16 04:21:54 +00:00
Nanang Izzuddin b5411f5f4d Misc (re #1751): Updated configure script to pass params using "$@" (thanks Alexander Traud for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4878 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-15 05:48:29 +00:00
Nanang Izzuddin 0e056499b8 Misc (re #1751): Delete config.log and config.status on "make distclean/realclean".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4877 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-14 07:21:58 +00:00
Nanang Izzuddin 92ca5b5756 Misc (re #1751): Fixed possible bad assertion caused by race condition between regc_tsx_callback() and pjsip_regc_send() (thanks John Ryan for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4876 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-14 04:49:25 +00:00
Riza Sulistyo ec2f27eff9 Re #1776: Initial implementation of Libyuv wrapper. Supports:
- library detection via autoconf
 - scaling and conversion function (from/to I420 or BGRA)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4875 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-14 02:37:06 +00:00
Benny Prijono 8148542208 Re #1758: misc: reverted accidentally checked in test.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4874 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-11 04:25:04 +00:00
Benny Prijono bf9dd9e5f5 Closed #1758: use OpenH264 lib version 1.0.0 release instead of the latest git version which is still changing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4873 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-11 04:20:08 +00:00
Riza Sulistyo cdda91daeb Misc (re #1751): fix crash when receiving unhold message caused by access to invalid data as a result of pool reset (Thanks to Itay Bianco for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4872 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-09 06:43:32 +00:00
Riza Sulistyo 4d41dda2ab Re #1765:
- Fixed unnecessary white-space error
 - Limiting log message to servers
 - Adding SSL_OP_SINGLE_ECDH_USE optionally
 - OpenSSL could be built without elliptic curve support, or too old



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4871 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-07 06:40:01 +00:00
Benny Prijono cd7a313a58 Misc re #1751: changing Android java's String.isEmpty() to String.length()==0 for better portability since the former is only available on API level 9
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4870 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-03 09:43:19 +00:00
Benny Prijono 1d55a26625 Closed #1775: Changing OpenSSL default method from TLSv1 to SSLv23 to enable enable AES-GCM cipher suites in default (thanks Alexander Traud for the patch).
Also fixed a bug in SIP TLS transport (sip_transport_tls.c). According to [https://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip/include/pjsip/sip_transport_tls.h#L94 sip_transport_tls.h:94], when PJSIP_SSL_UNSPECIFIED_METHOD is set as method, PJSIP_SSL_DEFAULT_METHOD will be used. But the implementation uses PJ_SSL_SOCK_PROTO_DEFAULT instead of PJSIP_SSL_DEFAULT_METHOD. Currently this is fine because both resolve to TLSv1, but the patch will break it.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4869 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-02 18:57:53 +00:00
Benny Prijono d08da0a012 Misc re #1751: removed --tls-srv-name from pjsua usage text since that feature has been removed long time ago by #1448 (thanks Alexander Traud for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4868 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-02 18:07:12 +00:00
Benny Prijono 9d091816ef Re #1758: updated with the latest OpenH264 to fix compilation error with bsi->eOutuptFrameType and missing int32_t type on Windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4867 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-02 17:55:45 +00:00
Sauw Ming d06ace5d10 Re #1768: move access to MainActivity class from MyApp to avoid undefined symbol error when not compiling for Android app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4866 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-02 02:58:01 +00:00
Sauw Ming d442412ed4 Fixed #1774: Unfreed transports upon stack shutdown/restart
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4865 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-26 10:39:35 +00:00
Nanang Izzuddin 0ff9141463 Re #1758: updated wrapper with Visual Studio specific settings, also added the wrapper to VS project.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4864 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-26 08:32:48 +00:00
Benny Prijono 7d92b81b2f Re #1758: Updated with the latest OpenH264 to fix compilation error and codec initialization error for packing mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4863 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-23 06:21:21 +00:00
Nanang Izzuddin 6cbe3651b5 Fix #1773: Added group lock to SIP transport to avoid race condition between transport callback and destroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4862 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-19 09:42:02 +00:00
Nanang Izzuddin 67d033cb02 Close #1772: Fixed error handling in pjsua_create() and pjsua_init().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4861 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-19 08:06:50 +00:00
Riza Sulistyo caef1f2398 Re #1771: Implement run-time configuration to set specific socket option.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4860 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-19 05:07:12 +00:00
Riza Sulistyo 6d43f917ef Re #1770: Fixed issue with "other params" quotes when proxying WWW-authenticate header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4859 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-10 02:56:56 +00:00
Benny Prijono 5d4eec623f Misc (re #1751): fixed error when retrieving SSL error. Thanks Vittorio Giovara for the patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4858 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-06 10:08:47 +00:00
Benny Prijono 1520759586 Misc (re #1751): fixed problem in r4852 which caused sound not to be opened
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4857 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-06 09:43:22 +00:00
Benny Prijono 77e9412b79 Misc (re #1751): added additional checking to invite and dialog instances when terminating the call when media initialization fails due to suspected crash
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4856 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-05 05:04:42 +00:00
Benny Prijono d085d2f425 Misc (re #1751): invalidate timer entry for every cancel() scenario to avoid assertion next time the entry is scheduled if cancellation fails (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4855 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-04 09:23:10 +00:00
Nanang Izzuddin 09a710ec56 Fix #1769: Fixed maximum size/resolution calculation of H264 video in decoding direction.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4854 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-04 03:48:28 +00:00
Nanang Izzuddin 68807a88d5 Re #1762: Fixed native preview cannot be stopped.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4853 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-30 06:13:24 +00:00
Sauw Ming 01d927ef9e Re #1751 (misc): Avoid setting sound device if sound devices are the same (thanks to Christian Ambach for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4852 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-28 08:44:31 +00:00
Nanang Izzuddin 97bd35d547 Misc (re #1751): Fixed uninitialized config filename in ui_write_settings() in pjsua app (thanks Lars Helgeson for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4851 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-23 09:29:09 +00:00
Nanang Izzuddin 2364977192 Misc (re #1751): Fixed AF_INET should be PJ_AF_INET in sock_common.c (thanks Lars Helgeson for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4850 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-23 09:26:34 +00:00
Nanang Izzuddin 6c03df1ea3 Misc (re #1751): Fixed SIP status phrase of status code 484 to be "Address Incomplete" (thanks Graeme Robertson for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4849 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-23 03:24:55 +00:00
Sauw Ming 31da64e8ae Re #1757: Modify display video function in r4813 so it can display video preview as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4848 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-22 04:52:53 +00:00
Nanang Izzuddin c6811d496b Misc (re #1751): Fixed build error when PJ_LOG_MAX_LEVEL is set to 0 (thanks Fredrik Hansson for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4847 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-20 04:39:46 +00:00
Benny Prijono 67671ee549 Re #1758: changing library name from libwels to libopenh264 in recent OpenH264 update
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4846 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-20 04:27:01 +00:00
Benny Prijono a5e86c3eb4 Fixed #1767: Tone generation API in pjsua2 and SWIG wrappers
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4845 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-19 05:51:10 +00:00
Benny Prijono aa36908a4a Re #1768: fixed potential GC problem when rejecting incoming call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4844 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-09 10:39:39 +00:00
Benny Prijono 89f70f7855 Re #1768: avoid crash if outgoing call fails during media initialization, because on_call_state() is called with NULL event, which is unexpected by pjsua2 (and possibly other unsuspecting apps)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4843 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-09 08:57:15 +00:00
Benny Prijono 4b0375c37d Re #1768: added APP_PLATFORM to avoid this warning "WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 11" which would make native debugging fail
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4842 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-09 08:51:54 +00:00
Benny Prijono da23a224b6 Re #1768: fixed wrong JNI compilation flags used by pjsua2 Android sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4841 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-09 08:50:08 +00:00
Benny Prijono 424d80b479 Re #1768: Fixed problems with Java garbage collection on call and buddy object
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4840 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-09 08:47:06 +00:00
Benny Prijono 720b9b52e4 Fixed #1766: Assertion due to stray retransmit timer in UAC transaction completed state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4839 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-08 09:21:04 +00:00
Nanang Izzuddin 652ce73b85 Re #1762: Support more capture sizes (was only 352x288) and automatically find the closest supported size from the requested size.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4838 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-07 08:11:10 +00:00
Nanang Izzuddin 8d63602ddb Re #1762: Fix native preview not shown issue by starting capture session from main thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4837 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-07 05:30:29 +00:00
Nanang Izzuddin d001e05934 Re #1762: Add I420/IYUV output format to capture devices.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4836 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-06 12:55:49 +00:00
Sauw Ming b9dce8db80 Re #1757: Avoid calling OpenGL ES functions when in the background (which may cause app to be killed by iOS)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4835 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-05 07:53:31 +00:00
Sauw Ming 72cf29ff2c Re #1762: Add capability enumerations and native preview capability
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4834 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-05 07:47:48 +00:00
Riza Sulistyo 386c257406 Misc (re #1751): Fix build error (Ubuntu 14.04) when building Pjsip with OpenCore-AMR.Thanks to Alexander Traud for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4833 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-05 06:29:41 +00:00
Sauw Ming 4400a234d1 Fixed #1765: Add PFS support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4832 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-02 10:20:14 +00:00
Sauw Ming 404f26b960 Re #1764: Add reference to ticket number
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4831 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-30 15:12:49 +00:00
Sauw Ming 6fe453c229 Fixed #1764: Use latest early media SDP received on forked early media on 18x response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4830 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-30 15:04:12 +00:00
Sauw Ming 37e8cd9fb1 Fixed #1763: Add pj_ssl_cipher_id() API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4829 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-30 08:21:28 +00:00
Riza Sulistyo 508fffa3f8 Re #1749: Update configure-android to support intel build.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4828 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-30 02:37:00 +00:00
Benny Prijono c598da33ba More #1758: updated to the latest OpenH264 code
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4827 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-25 07:52:27 +00:00
Riza Sulistyo 12ca3d81cc Misc (re #1751): Fix crash when retrieving dynamic choice(video stream info) caused by the use of invalid array index.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4826 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-24 09:45:52 +00:00
Riza Sulistyo 2dbbe57e1e Misc (re #1751): Fix crash when executing pattern matched shortcut on cli.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4825 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-24 09:39:41 +00:00
Nanang Izzuddin bf1d936861 Re #1762:
- enumerate all capture devices
 - fast switch between capture devices
 - enhance simple renderer (a bit simpler, add capabilities)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4824 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-24 08:37:45 +00:00
Nanang Izzuddin 566eb58ce7 Misc (re #1751): Set media transport state back to NULL after media transport creation fails, and also remember the error code.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4823 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-22 09:21:58 +00:00
Nanang Izzuddin 97fc0976fc Misc (re #1751): Fixed compile error 'Implicit declaration of function is invalid in C99' on Xcode 5.1.1.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4822 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-22 07:31:32 +00:00
Sauw Ming e2ed859262 Closed #1757: iOS OpenGL renderer
* Optimize rendering speed and CPU usage by avoiding buffer copy from frame's buffer
* Add various video dev capabilities



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4821 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-22 05:04:43 +00:00
Nanang Izzuddin c1c808bdcd Fix #1759: Added check for call disconnection in ICE media transport creation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4820 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-21 05:40:32 +00:00
Benny Prijono c14ad808b7 Fixed #1761: Remove "timer" from Supported header if it is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4819 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-17 09:13:01 +00:00
Benny Prijono f341b3c545 Misc re #1751: increase maximum ALSA devices from 16 to 32
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4818 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-16 07:15:50 +00:00
Benny Prijono 92b7b2056b Closed #1760: added pjsip_tcp_transport_get_socket() API to get the raw socket handle from SIP TCP transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4817 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-15 08:46:18 +00:00
Benny Prijono 273872575a Misc (re #1751): do not update RTCP TX statistic if sending RTP in stream (audio and video) fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4816 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-14 08:14:11 +00:00
Benny Prijono b3034d498f Re #1758: Initial implementation of OpenH264 wrapper. Supports:
- library detection via autoconf
 - CBP
 - packetization modes: 0, 1
 - key frame request and indication
 - obey remote's fmtp

Also added video codec test in samples (similar to the one in pjmedia test though).
And there are some fixes here and there too (e.g. in vid_codec_util.c).


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4815 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-10 10:01:07 +00:00
Riza Sulistyo 2d91e02341 Misc (re #1751): Fixed compile error on stereo_demo due to changes on pjmedia_port_info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4814 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-10 01:56:40 +00:00
Sauw Ming 2015de408d Re #1757: Add example to display video in ipjsua (require ffmpeg libraries)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4813 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-08 09:43:01 +00:00
Sauw Ming 53ba54e3cc Re #1757: Initial implementation of iOS OpenGL ES renderer. To use it, application needs to add:
#define PJMEDIA_VIDEO_DEV_HAS_OPENGL 1
#define PJMEDIA_VIDEO_DEV_HAS_OPENGL_ES 1
#define PJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL 1



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4812 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-08 09:03:35 +00:00
Riza Sulistyo 06c770710a Misc (re #1751): Fixed unintialized field of pjmedia_transport_info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4811 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-08 07:25:20 +00:00
Sauw Ming c03be3ba02 Re #1751 (misc): Add feature in Python API to enable mwi and modify account (thanks to John Bigelow for the patch). This is to update the old API. If possible, application is recommended to use the new API based on pjsua2 instead (please refer to pjsua2 book).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4810 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-07 06:56:06 +00:00
Nanang Izzuddin 85ba96032e Re #1754: Minor update, replaced comment marks.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4809 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-07 04:12:57 +00:00
Nanang Izzuddin 390c4e055d Re #1750:
- Replaced "enum CodecID" with "unsigned" (previous fix raised compile error for some older ffmpeg versions).
 - Handled PIX_FMT_GBR24P hassle.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4808 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-01 09:47:15 +00:00
Sauw Ming e499555f4a Fixed #1756: Race condition in SIP transaction termination (thanks to Kevin Harwell for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4807 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-31 10:19:27 +00:00
Nanang Izzuddin 92c67a76d5 Fix #1755: Send ACK for incoming 200/INVITE even after call is disconnected.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4806 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-28 12:02:13 +00:00
Nanang Izzuddin 7a3f7eaf38 Fix #1754: Fixed crash in video stream when encoder returns zero payload length.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4805 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-28 07:44:31 +00:00
Nanang Izzuddin 7a000a38ad Fix #1753: Fixed crash in pjsua2 when receiving unsolicited MWI.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4804 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-26 06:31:25 +00:00
Nanang Izzuddin a50e0b5a81 Misc (re #1751): Fixed unremoved pjsua2_demo.o after 'make clean'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4803 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-25 06:38:41 +00:00
Riza Sulistyo ab4a3bec0d Re #1752: Add option to resolve hostname when trying to get network interface.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4802 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-25 04:08:44 +00:00
Perry Ismangil a4394020c2 Re #1750 fix for detecting definition of CodecID in newer ffmpeg
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4801 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-20 09:42:31 +00:00
Riza Sulistyo c41812a4f5 Re #1751: Fix build error when using 'disable-libsamplerate' on configure.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4800 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-20 05:35:27 +00:00
Perry Ismangil 66890967f2 Re #1751 Removed reference to libmilenage in ipjsua iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4799 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-20 03:57:46 +00:00
Benny Prijono de71c0e645 Misc (re #1751): added experimental option to enable/use worker thread for Python. To enable worker thread:
- uncomment USE_THREADS in pjsip-apps/src/swig/python/Makefile
 - change USE_THREADS to True in pjsip-apps/src/pygui/application.py


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4798 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-19 21:20:17 +00:00
Riza Sulistyo 6163e7409e Changed version to 2.2.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4797 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-14 10:01:50 +00:00
Riza Sulistyo 7339542beb Changed version to 2.2.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4795 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-14 06:58:10 +00:00
Benny Prijono b9d570c3bb Misc re #1742: fixed output error in helper.mak in swig module setup.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4794 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-14 06:30:35 +00:00
Benny Prijono 6c02e39e89 Closed #1748: enhancements to WAV player API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4793 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-14 04:09:50 +00:00
Benny Prijono 1c717ff13a Re #1742: fixed bug: when cloning multipart body in multipart_clone_data(). Thanks Nick Wilson for the patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4792 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-13 09:33:32 +00:00
Nanang Izzuddin 5000e3d2da Fix #1747: Don't process message body in the incoming 200/UPDATE if we don't send offer in the UPDATE. Note this also fixes another issue: session timer should always inspect 200/UPDATE response (for session refresh) regardless availability of message body.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4791 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-11 07:45:29 +00:00
Riza Sulistyo 5b5851e9d1 Re #1742 (misc): Add input file checking on pjsua2_demo
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4790 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-11 07:03:22 +00:00
Riza Sulistyo 64f43a541d Re #1742 (misc): Fix invalid use of Endpoint on pjsua2-test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4789 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-11 07:00:39 +00:00
Nanang Izzuddin 19390fc593 Re #1742 (misc): Added NULL check before cloning codec param in pjmedia stream (thanks Wolfgang Kampichler for the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4788 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-11 03:07:46 +00:00
Benny Prijono 75ce646b17 Fixed #1746: Assertion in sip_transaction.c when ACK and retransmit timer events occur simultaneously
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4787 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-11 02:50:36 +00:00
Nanang Izzuddin c4603ca1ff Re #1745 (Shared lib on MinGW): Fixed missing LDFLAGS setting on some components and build options for win32 DLL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4786 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-10 09:13:10 +00:00
Nanang Izzuddin a78e76eb5a Re #1745 (Shared lib on MinGW): Avoid circular dependency caused by pjmedia-audiodev dependency on pjmedia/format.c for pjmedia_format_init_audio().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4785 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-10 09:01:18 +00:00
Nanang Izzuddin 9aedf941bc Re #1745 (Shared lib on MinGW): Fixed multiple definition of pj_time_decode/encode().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4784 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-10 08:58:49 +00:00
Sauw Ming 403b39e5c7 Re #1742(misc): related to r4781, fixed the dependency pjsua2 library path
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4783 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-10 04:39:10 +00:00
Benny Prijono 5fd8df889a More re #1743: also added code snippet to make routing selection stick even when earpleace is plugged in/out. But this doesn't seem to work (tested on Q10 OS 10.2.1)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4782 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-06 05:15:19 +00:00
Sauw Ming 72cc418a97 Re #1742 (misc): Add pjsua2 to make install and pkgconfig description and fix its library path
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4781 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-06 03:33:40 +00:00
Sauw Ming 0adad1010c Re #1742 (misc): Fixed doc for Call::reinvite() in pjsua2 lib
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4780 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-06 01:02:26 +00:00
Sauw Ming f3aae56e6f Re #1742 (misc): Fixed incorrect checking of require_100rel configuration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4779 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-06 01:00:11 +00:00
Benny Prijono 9533172c41 Fixed #1743: Unplugging the earpeace while audio is running would cause audio to stop in BB10 10.2.1. This also fix the issue in #1732
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4778 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-05 10:16:55 +00:00
Sauw Ming 95999a86e9 Fixed #1744: Codec and audio device enumeration problem in pjsua2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4776 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-04 04:25:31 +00:00
Nanang Izzuddin 08ddcf83b5 Close #1739: Info of last receive timestamp and data size in TCP/TLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4775 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-04 02:18:51 +00:00
Benny Prijono abf4f86ac8 Fixed #1719: Bug in DNS SRV/RFC 3263 server selection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4774 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-28 10:14:24 +00:00
Sauw Ming 89d9665608 Fixed #1699: Transport state callback to report transport shutdown events (Thanks to Johan Lantz for the discussion and preliminary patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4773 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-28 05:42:24 +00:00
Benny Prijono 0fdae3b635 Re #1742 (misc): Updated latest pjsip-book and added make install target to install the book to WWWDIR
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4772 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 11:48:34 +00:00
Nanang Izzuddin b88a5358f4 Fix #1741: fixed AudioMedia in setting signal level adjustment and querying signal level.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4771 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 10:53:15 +00:00
Nanang Izzuddin 1c9dd69383 Fixed #1740: TLS will be used whenever request URI uses "sips" scheme regardless the target-URI scheme/transport. This behavior is configurable via 'PJSIP_DONT_SWITCH_TO_TLS' in compile-time, or 'pjsip_cfg()->disable_tls_switch' in run-time.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4770 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 06:16:36 +00:00
Benny Prijono 5ed3ec85d3 Changed version to 2.2-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4769 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 04:47:59 +00:00
Sauw Ming 1ad3e494e8 Re #1630 (misc): Fixed test account in java sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4767 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 02:26:53 +00:00
Benny Prijono 9c89d08b3a Changed version to 2.2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4764 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 02:13:25 +00:00
Benny Prijono 576f868a95 Re #1715: updated book with latest Rst
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4763 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 02:03:59 +00:00
Benny Prijono e62cdc7cde More re #1715: doxygen integration into the book
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4762 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-24 11:00:15 +00:00
Nanang Izzuddin 797a52d3dc Re #1680: Fixed compile warnings on VS2005 for x64/win64 config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4761 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-24 09:02:44 +00:00
Nanang Izzuddin 1d865bcd8d Misc (re #1630): Fixed missing PJ_DECL on pj_run_app() and bad type casts in WMME audio dev (thanks Louis Solomon for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4760 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-24 08:49:40 +00:00
Riza Sulistyo f60223f20a Re #1519: Fix error build (swig java) when JAVA_HOME is set to folder name separated by space (' ')
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4759 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-21 10:33:22 +00:00
Nanang Izzuddin faac692e00 More pjsua2 SWIG Python (re #1519): Fixed 'symbol not found' error in loading pjsua2 (on MacOS) when built with video enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4758 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-21 10:07:52 +00:00
Nanang Izzuddin 0b64833cdd Re #1708: Fixed missing conference port connection setups for audio conferencing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4757 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-21 07:53:31 +00:00
Nanang Izzuddin f0e50d301a More pjsua2 SWIG Python (re #1519): Separate library dependencies from Python Extension setting 'extra_link_args', so PJ lib dependencies are specified before Python's (otherwise strange crash happens on MinGW).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4756 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-21 07:49:37 +00:00
Nanang Izzuddin c6ff58ff09 Misc (re #1630): Put back circular reference dependency (previously added by r4607).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4755 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-21 07:28:39 +00:00
Benny Prijono 52b882d734 More #1712: Handle case when 200/OK is not ACKed and inv needs to send BYE. In this case, ACK will never be received so don't wait for it. Similar treatment for transport error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4754 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-21 07:24:18 +00:00
Nanang Izzuddin 59d9f6c864 Re #1519: Include user.mak build settings in building pjsua app and pjsua2 SWIG Python binding.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4753 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-20 08:08:06 +00:00
Sauw Ming a079718577 Re #1643: Fixed accidental removal of pj_run_app() call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4752 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-19 08:57:22 +00:00
Benny Prijono 597d51c542 Misc (re #1630): use static variable when registering interruptionListener thread
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4751 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-19 04:24:08 +00:00
Benny Prijono 92796d9e27 Fixed #1738: Infinite loop when re-INVITE is received while adding new media
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4750 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-19 04:11:43 +00:00
Benny Prijono fc17777212 Fixed #1737: Deadlock between ioqueue key mutex and SIP dialog when adding video media with ICE and STUN enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4749 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-18 12:34:25 +00:00
Benny Prijono dc9ca13495 Fixed #1736: Update to bdSound's bdiMad audio device to support output routing. Thanks Andrea for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4748 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-18 01:41:45 +00:00
Benny Prijono bdedcad4fa Misc (re #1630): fixed failure to recognize short representation of Event header
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4747 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-18 01:33:17 +00:00
Benny Prijono b321eea93f More re #1519: removed auto generation of symbols.i from the Makefile because it cannot be run from MacOS X. Also touched symbols.i. Next time, check in symbols.i separately from symbols.lst
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4746 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-17 06:31:29 +00:00
Nanang Izzuddin 008314dce9 More pjsua2 API (re #1519): fixed bad strtok() delimiter in the tool added by r4744.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4745 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-14 09:39:08 +00:00
Nanang Izzuddin 1e0b8f8e69 More pjsua2 API (re #1519): added simple tool to check and remove-if-necessary deprecated gcc option '-mno-cygwin' in building pjsua2 python binding on MinGW.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4744 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-14 09:09:11 +00:00
Benny Prijono 31be3aae07 More pjsua2 API (re #1519): removed -static-libstdc++ flags from build.mak
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4743 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-12 05:22:51 +00:00
Benny Prijono 21c7ca6c1c More pjsua2 API (re #1519): renamed TimeValue to TimeVal due to conflict in iOS SDK
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4742 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-12 05:18:31 +00:00
Benny Prijono c2cfc1c7bd More pjsua2 API (re #1519): removed -static-libstdc++ flags from setup.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4741 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-12 05:04:34 +00:00
Benny Prijono f2c637eb56 More pjsua2 API (re #1519): changed default options value in createPlayer(), createRecorder(), and createPlaylist() to use 0 which is more natural
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4740 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-12 04:54:12 +00:00
Riza Sulistyo 7a019dab29 Re #1734: Add flash support for DTMF rfc 2833.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4739 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-11 04:46:49 +00:00
Nanang Izzuddin 96ae49caed Re #1519 [SVN trunk]: Related to r4737, for Android, don't override JAVA_HOME when it is already set (via environment variable).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4738 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-07 03:22:04 +00:00
Nanang Izzuddin 6fa3818545 Re #1519 [SVN trunk]: Updated JAVA_HOME auto-detection for pjsua2 SWIG Java binding, especially for MacOS platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4737 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-06 11:50:41 +00:00
Benny Prijono 0a0729616f Misc (re #1630): another fixes for gcc warnings about variable set but unused
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4736 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-06 11:06:42 +00:00
Sauw Ming 0bd8243d42 Fixed #1733: Fix polling mechanism during STUN server resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4735 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-06 05:09:52 +00:00
Nanang Izzuddin df51031a97 Re #1716, misc updates:
- always enable ICE+STUN
 - UI: added textEmailAddress to SIP URI inputs



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4734 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-05 09:32:57 +00:00
Nanang Izzuddin a1065b4fa4 Re #1716: Fixed crash in adding buddy, caused by immediate buddy state notification right after adding buddy to account, while UI buddy list has not been updated yet.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4733 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-05 06:34:00 +00:00
Benny Prijono fdff733444 Re #1516: fixing multiple inclusions of crtbegin.o and -lgcc in the makefiles. The former causes link errors due to multiple symbols
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4732 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-05 05:52:10 +00:00
Benny Prijono e9c0d06173 Misc (re #1630): fixing gcc warning about variable set but unused
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4731 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-05 05:49:13 +00:00
Benny Prijono a35bbc23dc Fixed #1732: Error setting audio output route in BlackBerry 10 (BB10) version 10.2.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4730 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 13:24:28 +00:00
Benny Prijono 7f31662cc9 Misc (re #1630): fix gcc warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4729 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 13:13:02 +00:00
Benny Prijono 241474d94d Misc (re #1630): Fixing warnings about variable set but not used with recent gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4728 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 10:13:56 +00:00
Sauw Ming 4bf06e69fa Re #1519 (commited to SVN trunk): Add lib target to build system to enable building the library only (without the executables)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4727 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 07:39:55 +00:00
Sauw Ming 6938aecfc7 Re #1731: Fix the same problem in TLS transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4726 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 04:56:50 +00:00
Sauw Ming c4bd44831a Fixed #1731: Fix TCP transport leak problem
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4725 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 04:45:37 +00:00
Nanang Izzuddin 3537c545df Misc (re #1630): Fixed some more typos in the codes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4724 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-31 08:52:09 +00:00
Nanang Izzuddin 68cb865f25 Close #1730: Added srtp_deinit()/shutdown() detection for external SRTP in configure script.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4723 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-30 04:33:27 +00:00
Nanang Izzuddin 30a2f34618 Close #1729: Added check of PJMEDIA_HAS_VIDEO (instead of just specific backend check) in video device wrappers.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4722 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 10:40:40 +00:00
Nanang Izzuddin 6ca4a4997b Misc (re #1630): Modified configure script to only include libnsl if needed, e.g: on Solaris networking functions are in libnsl (thanks Jeremy Laine for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4721 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 10:08:28 +00:00
Nanang Izzuddin 7a302f27ed Close #1728: Removed milenage library from linking setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4720 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 09:53:06 +00:00
Nanang Izzuddin e354c94af6 Re #1519: [SVN trunk]: Misc fix compile warning.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4719 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 08:10:22 +00:00
Nanang Izzuddin 7959439cdb Fix #1727:
- Start timer TIMER_TYPE_UAS_TIMEOUT when incoming subscription request is accepted (via pjsip_evsub_accept()).
 - Kill any timer when subscription state is shifting into TERMINATED.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4718 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 06:58:21 +00:00
Nanang Izzuddin bd187283ee Fix #1726: Added check in assertion line for transmitting STUN message without incrementing retransmission count.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4717 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 06:33:38 +00:00
Benny Prijono b02eb708c8 Fixed #1725: ACK is not sent upon receiving 200/OK retransmission if re-INVITE is sent
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4716 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-24 11:28:34 +00:00
Riza Sulistyo a4651e6f6c Re #1722:
- add handler for 502/503 response to refresh request. 
 - add expire timer for refresher.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4715 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-24 09:32:27 +00:00
Nanang Izzuddin d50aabdde6 Misc (re #1630): Fixed some typos in the code (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4714 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:15:34 +00:00
Nanang Izzuddin 93252d7e89 Misc (re #1630): Fixed symbols that should not be exported (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4713 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:13:11 +00:00
Nanang Izzuddin 288461dd42 Misc (re #1630): Fixed GCC build warnings (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4712 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:09:29 +00:00
Sauw Ming 709083b78f Re #1723: Modified build system to link with C++ library only for pjsua2 lib or app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4711 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 02:28:41 +00:00
Benny Prijono 7faedf5db4 More re #1655: bug in console UI to do attended call transfer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4710 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-22 10:51:49 +00:00
Benny Prijono 16a65355fd More re #1655: added CLI command to toggle audio output route
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4709 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-22 08:02:56 +00:00
Nanang Izzuddin 153df4e464 Re #1519 [into SVN trunk]: AudioMedia objects must not be destroyed before unregistered from conf bridge.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4708 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-21 10:59:25 +00:00
Benny Prijono 7d93e41e08 Related to Re #1656: added trace message when output route setting fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4707 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-17 05:09:29 +00:00
Benny Prijono 156d42580c Re #1630: Updated GNU GPL COPYING file to use the official one from http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. It has minor differences with the one we used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4706 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-17 03:03:47 +00:00
Sauw Ming be9ab067d8 Re #1723: Fixed compilation and linking errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4705 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-16 06:33:19 +00:00
Sauw Ming f33813f793 Closed #1723: Merging pjsua2 branch into trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4704 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-16 05:30:46 +00:00
Riza Sulistyo a58f57bc38 Re #1721: Clear invite transaction before calling on_call_tsx_state (on transaction terminated)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4703 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-07 10:55:10 +00:00
Nanang Izzuddin 653c0d27b6 Re #1519: Put back automatic "writer" deletion in Endpoint destructor.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4702 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-07 07:35:31 +00:00
Nanang Izzuddin 1683d49f75 Close #1720:
- Added configure flags --with-external-srtp and --disable-resample.
 - Added macro setting PJMEDIA_LIBSRTP_AUTO_INIT_DEINIT to allow application to handle libsrtp init & deinit by itself.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4701 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-03 03:44:05 +00:00
Sauw Ming f226c99fac Re #1630 (misc): Fixed documentation of pjsip_generic_int_hdr
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4700 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-02 01:25:22 +00:00
Nanang Izzuddin 91131fc69d Re #1519: Fixed assertion and crash in Endpoint destruction caused by late destroy (after pjsua destroyed) and double deletes of audio device media.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4699 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-19 03:49:05 +00:00
Nanang Izzuddin 9f8f280dd5 Re #1716: Maintain reference to log writer to avoid crash (caused by premature cleanup by GC).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4698 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-19 03:39:30 +00:00
Nanang Izzuddin e062d51ea4 Re #1716: Misc fixes/updates on Android app based on pjsua2+SWIG, e.g: fixed java string comparisons, added build config for ndk-build (for native debugging), updates on SVN props.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4697 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-18 11:42:04 +00:00
Riza Sulistyo 85df2905bf Re #1716:Added java desktop sample application.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4696 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-18 07:14:54 +00:00
Nanang Izzuddin 775f753f7d Fixed #1718: Immediately shift call state to DISCONNECTED after receiving 422 response without Min-SE header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4695 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-18 07:10:12 +00:00
Nanang Izzuddin 17ab10d37a Fixed #1717: Destroy media subsystem after all pollings/busy_sleep() are done, but leave deallocating media transport (via pjsua_media_channel_deinit()) before the pollings to allow clean TURN destroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4694 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-17 09:01:21 +00:00
Nanang Izzuddin 6c930b9c7d Re #1716: Handle recreated activity, for example by device rotation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4693 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-14 01:14:07 +00:00
Nanang Izzuddin 70bde3b601 Re #1519: Misc fixes in pjsua2:
- Changed AccountConfig::toPj() signature, because a pjsua_acc_config instance should not be copied/assigned to another pjsua_acc_config instance as it contains list.
 - Fixed assertion in Endpoint destructor caused by access to pjlib mutex after pjlib is destroyed.
 - Changed VS2005 sample_debug project to allow debugging C++ code such as pjsua2_demo.cpp.
 - Compile warnings on VS2005.
 - Fixed SWIG python unit test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4692 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 11:44:51 +00:00
Nanang Izzuddin 3270796782 Re #1716: Initial implementation of new Android app based on pjsua2+SWIG API.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4691 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 09:07:53 +00:00
Nanang Izzuddin ba10fb5124 Re #1708: Cleanup few chat stuffs in Python GUI.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4690 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 01:28:16 +00:00
Nanang Izzuddin 8ccd01859a Re #1516: Avoid duplicated LDFLAGS in pjlib-test, which may raise linking errors (e.g: on Android).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4689 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 01:16:10 +00:00
Benny Prijono 174fe6650d Misc re #1630: added string.h to pjlib-util.h. Thanks Johan lantz for the suggestion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4688 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-10 10:58:10 +00:00
Nanang Izzuddin de206c7e10 Re #1708: Misc updates:
- Explicitly invoke call hangup in stopping audio.
 - Show text chat box, if it's hidden, when user initiates instant message (right click on buddy).



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4687 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 13:20:37 +00:00
Nanang Izzuddin f71702e9b6 Re #1708:
- Changed participant managements in Chat, e.g: changed Buddy based to URI based, create temporary Buddy for incoming call/IM from non-buddy.
 - Implemented simple media features in chat window (mute, volume, codec info).
 - Misc: added window menu listing chat windows, changed behaviour on closing chat window, etc.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4686 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 11:04:36 +00:00
Nanang Izzuddin 56717f77e9 Re #1519: Added typecast methods for AudioMedia & its descendants, as Python cannot downcast among C++ classes, e.g: Media to AudioMedia.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4685 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 10:53:12 +00:00
Benny Prijono c910290b21 Re #1519: fixed assertion when unable to resolve destination
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4684 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 08:25:27 +00:00
Benny Prijono 9df4b9eacf Re #1519: added some more NULL checking in SIP data types
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4683 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 07:21:24 +00:00
Benny Prijono f835b753a7 Re #1519: fixed crash when receiving typing indication inside a call
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4682 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 06:35:28 +00:00
Benny Prijono de525ebe1d Re #1519: minor fix to use pjmedia_format_copy() instead of plain assignment, and add return value to pjsua main()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4681 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 04:20:19 +00:00
Benny Prijono 2aaaea3a5b Re #1519: added Tx/Rx level adjustment in conf port info in pjsua-lib and pjsua2, and format in conf_port_info
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4680 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 04:15:24 +00:00
Benny Prijono f5e32ccaa6 Re #1708: bring back logging and some fixes in settings dialog
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4679 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 03:04:38 +00:00
Benny Prijono bebd0971c4 Re #1519: fixed threading issues on Python. On Python, only threads created by Python can call Python. This creates problem with calling callback from worker thread. The SIP worker thread can be disabled, but we have other worker threads such as the sound device that cannot be disabled. The solution in this patch is to create small framework to post a job to "main thread" during libHandleEvents(). The main thread is thread that calls libCreate().
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4678 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 03:03:36 +00:00
Nanang Izzuddin 559f01c4c9 Re #1708: Implement adding participants, also various misc updates/fixes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4677 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 12:19:48 +00:00
Benny Prijono e08f706e95 Re #1519: added AudioMedia for the sound device
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4676 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 07:05:35 +00:00
Benny Prijono 654d0a2e23 Re #1708: fix so that deleted account does not register itself to the treeview again during unregistration
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4675 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 07:04:49 +00:00
Benny Prijono 5f8aaf2096 Re #1519: added misc comment to clarify
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4674 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 04:05:02 +00:00
Benny Prijono b193b53196 Re #1519: fixed compilation error in pjsua2_demo
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4673 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 03:08:24 +00:00
Benny Prijono cb7fd11125 Re #1519: doxygen fixes and other minor fixes
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4672 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 03:01:20 +00:00
Nanang Izzuddin c083f3adcb Re #1708: Initial work on chat window.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4671 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 02:46:42 +00:00
Nanang Izzuddin cc45350a25 Misc update & fix:
- added new files (call & media) to VS2005 project
 - fixed compile warnings
 - fixed compile error when video is disabled
 - fixed Makefile when JAVA_HOME env var is set



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4670 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 02:38:20 +00:00
Riza Sulistyo b23faaba40 Re #1519: Added codec management operations to Media API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4669 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-03 10:45:36 +00:00
Riza Sulistyo 3932e857bb Re #1519: Added audio device management operations to Media API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4668 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-03 07:14:22 +00:00
Benny Prijono 2f2de4cc3b Re #1630: updated wrong documentation about default jb_init value in pjsua. The default is 0, not 150.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4667 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-03 05:22:10 +00:00
Sauw Ming 638413c5ea Re #1519: Add call media
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4666 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-02 04:40:29 +00:00
Benny Prijono bb13e795c3 Re #1519: implemented Settings dialog and reorganization in config variables in Pygui app
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4665 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 12:16:43 +00:00
Benny Prijono ed3543416a Re #1519: Fully configurable account settings (more or less) and other small fixes
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4664 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 07:39:07 +00:00
Sauw Ming 64e77a85c2 Re #1519: Add Call API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4663 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 05:56:02 +00:00
Riza Sulistyo ff6231c790 Re #1519: Added Media API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4662 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 03:05:48 +00:00
Benny Prijono a9b82cfbed Fixed #1714: Workaround for stuck in TCP/TLS shutdown when another thread is destroying the transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4661 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 00:33:05 +00:00
Nanang Izzuddin 83f15d5e7d Re #1519: Added VS2005 project for pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4660 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:50:42 +00:00
Benny Prijono ba493f2041 More #1519: renamed pj_status_code member from status to code for more consistency, and removed exception throwing from Account destructor
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4659 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:42:21 +00:00
Nanang Izzuddin 91c14d9065 Re #1519: Minor fix on TransportInfo, use fromPj() method to import data from pjsua_transport_info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4658 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:18:18 +00:00
Nanang Izzuddin 732c75a69d Re #1519: Added presence API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4657 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 09:37:32 +00:00
Benny Prijono f912318dd8 Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4656 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23 07:13:40 +00:00
Nanang Izzuddin fb16bfb024 Re #1519: Added converter methods, to/from pjsua_msg_data, for SipTxOption.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4655 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23 03:54:03 +00:00
Nanang Izzuddin 20838ee07c Re #1519: Minor update on PJ_UINT64() macro for GCC compiler. "LLU" is not recognized by C preproc on mingw/msys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4654 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-22 10:18:08 +00:00
Benny Prijono 92cb5621ac Fixed #1712: Must not send BYE before ACK is received
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4653 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-19 10:18:17 +00:00
Sauw Ming f68beb9682 Re #1630 (misc): Prevent retransmit timer cancellation during retransmission of STUN request.
This is related to ticket #1620: Fix the calculation of transmission count during retransmission of STUN request. If mod_count is set to PJ_FALSE, retransmit timer shouldn't be cancelled.
 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4652 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-14 09:36:05 +00:00
Sauw Ming 73c6eb3c6e Re #1516: Set AR and RANLIB (thanks to Brian Walker for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4651 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-13 05:47:56 +00:00
Nanang Izzuddin c0ce4d60e9 Fix #1710: Modified resolver to always remove cache entry from cache hash table first before releasing/resetting cache pool.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4649 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-07 08:20:30 +00:00
Benny Prijono 7ad605c32f Re #1519: persistent support in PyGui application, making use of the new persistent API in pjsua2
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4648 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:14:17 +00:00
Benny Prijono 623be9d0ce Re #1519: added some C++ snippet to demonstrate or test persistent API in C++
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4647 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:09:05 +00:00
Benny Prijono 4034949659 Re #1519: Updated SWIG interface file with new headers (persistent.hpp, json.hpp, siptypes.hpp) as part of persistent API development
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4646 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:07:58 +00:00
Benny Prijono 4572e3aac9 More re #1519: the previous commit was missing this siptypes.cpp (this is part of persistent API development in pjsua2)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4645 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:06:40 +00:00
Benny Prijono 494d18e0c1 Re #1519: Added persistent API in pjsua2, with JSON as the format. The API is extensible to support more formats. All config structures are serializable now. Tested in Python.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4644 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:05:11 +00:00
Benny Prijono e389e2ec9b Re #1519: Added support for JSON (JavaScript Object Notation, RFC 4627) format in PJLIB-UTIL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4643 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 07:46:15 +00:00
Benny Prijono a6bcf96f7f Re #1519: added pj_strtof() to convert string to float in PJLIB, as part of pjsua2 persistent API development
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4642 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 07:41:40 +00:00
Nanang Izzuddin 8210f65326 Fix #1709: Fixed scanner in processing escaped quote right after quote begin.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4641 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-04 09:05:43 +00:00
Benny Prijono 64ff3f68b4 Re #1708 (PyGUI: New Python GUI Application based on pjsua2+SWIG API)
Initial implementation, some account functionality has been implemented. Details:
 - Uses Tk for GUI and pickle for object serialization. These are Python built-in modules
 - So far so good, everything (=Account API only so far!) seems to work, including:
    - STL string
    - STL vector
    - inheritance
    - calling callback that is implemented in Python with inheritance (the "director" feature")
 - Some notes though:
    - SIP worker threads need to be disabled because Tk GUI cannot be called from other threads (the worker thread will invoke callback which in turn will update GUI)
 - Features implemented in the GUI so far:
    - Account addition/deletion/modification
    - Registration
    - Logging to window
    - Persistent config (limited)





git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4640 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-01 08:49:43 +00:00
Benny Prijono f673a6ef92 Re #1519: Major change in pjsua2.i and etc after actual test in Python:
- Major changes in SWIG interface file (pjsua2.i). 
    - The "ignore" and "unignore" approach caused link error with vector (duplicate symbols because SWIG generates two identical vector functions in the wrapper) so it cannot be used (tried with many combinations and still doesn't work).
    - So scrap that, and now we use "importing" approach, where needed symbols must be listed in symbols.lst file, then use importsym.py to import the symbol declarations to symbols.i. Then include symbols.i in pjsua.i
    - Due to the way importsym.py work, some macros and naked constants need to be placed into a named enumeration, for example:
       - #define PJ_SUCCESS 0  ==> enum pj_constants_ { PJ_SUCCESS=0 }; [types.h]
       - enum { PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 } ==> enum pjmedia_vid_dev_std_index { PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 }; [videodev.h]
    - Makefile was changed so that symbols.i would be generated if symbols.lst has changed
 - Added "make install" and "make uninstall" targets for swig. Only implemented on Python. This will install to user's lib dir so doesn't need sudo.
 - Deleted approachX.hpp files
 - Added libVersion() method to Endpoint along with Version struct.
 - Fix pjsua2.i to make exception (or redirection?) works in Python
 - Add polling and worker thread related API:
    - PJSUA-LIB: pjsua_register_worker_thread(), pjsua_stop_worker_threads()
    - Endpoint: libRegisterWorkerThread(), libStopWorkerThreads(), libHandleEvents();



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4639 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-01 07:11:48 +00:00
Benny Prijono b64284082a Re #1519: Implementation of Account API, with inheritance approach:
- With small demo app (samples/pjsua2_demo.cpp)
 - Endpoint changed to use inheritance approach too
 - Simple account registration demo and callback works
 - Further tests will be done in high level app (Python GUI?)
 - Temporary build setting fixes (Makefile) to allow linking with pjsua2 and libstdc++
 - Temporary hacks in Makefile to ignore other build targets to speed up build. This should be fixed during integration.

Issues:
 - incomplete Endpoint::on_incoming_subscribe() implementation. There is no Account::presNotify() yet.
 - incomplete Endpoint::on_pager2(), on_pager_status2(), to handle call's pager rather than account's pager
 - some SWIGTYPE (unknown type by Swig) still unresolved



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4638 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-25 10:34:38 +00:00
Sauw Ming fc1fb24b87 Re #1630 (misc): Use the right compiler and flags to compile C++ (.cpp) files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4637 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 07:12:39 +00:00
Sauw Ming c8b3e27e8c Re #1697: Removed extra spaces in aconfigure.ac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4636 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 07:07:39 +00:00
Benny Prijono 350e07cb1d Re #1697: fixed build error with the new coreaudio_dev.m introduced by r4617, because build process looks for an ObjC compiler
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4635 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 06:27:14 +00:00
Riza Sulistyo 218c3d54c8 Re #1643: Fix some build warnings detected on VS2012
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4634 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 09:29:35 +00:00
Sauw Ming 3b238cc900 Re #1630 (misc): Fixed compilation error on iOS by setting AR_FLAGS (introduced in r4628) in configure-iphone
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4633 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 08:39:04 +00:00
Sauw Ming fdd63c3b60 Fixed #1707: Add support for paralel build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4632 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 06:39:47 +00:00
Benny Prijono fe3e558601 More re #1519:
- account API implementation (incomplete, callback is still not called)
 - using callback class design pattern (observer?)
 - after this, it might be changed to use inheritance pattern instead


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4631 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 05:34:48 +00:00
Sauw Ming 6ef94b23ec Fixed #1706: Race condition in SIP transaction
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4630 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-22 10:16:28 +00:00
Sauw Ming 83fe3b5b7c Re #1630 (misc): Thanks to Mark Michelson for the patch
This changes the autoconfigure script to use different checks for ar and ranlib.
The previous methods were causing compilation failures since it may cause a non-existent "ccar" command to be run.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4628 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 07:52:35 +00:00
Sauw Ming 2938e723c6 Re #1630 (misc): Thanks to Mark Michelson for the patch.
This creates an "uninstall" target in the project Makefile that will remove the installed libraries from the system.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4627 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 07:07:35 +00:00
Sauw Ming 1afe01bf0f Re #1630 (misc):
Fixed os_darwinos.h (however, if PJ_AUTOCONF is defined, this file should not be used)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4626 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 07:04:38 +00:00
Sauw Ming 37a4cc7439 Re #1630 (misc): related to r4623, missing the generated configure script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4625 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 06:49:58 +00:00
Sauw Ming ab249ac0e5 Re #1630 (misc):
Fixed compiler warnings. Thanks to Mark Michelson for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4624 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 06:37:30 +00:00
Sauw Ming 113e3eced1 Re #1630 (misc): Thanks to Mark Michelson for the patch
This change makes the check for libm always occur during configuration, and it
also tests for the 'sin' function since there are places in the code that
require this function.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4623 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 06:32:16 +00:00
Nanang Izzuddin 4f27720dc2 Close #1705: Added playback and capture callbacks for echo canceller algo. Note that this changeset also modified current Speex AEC algo behaviors:
- applied this two APIs model for Speex AEC algo
 - enabled Speex AGC preprocessing



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4622 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 03:11:14 +00:00
Nanang Izzuddin 2f2a2ad486 Misc (re #1630): replaced htons() with ntohs() in l16_decode() on little endian platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4621 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-17 02:43:59 +00:00
Nanang Izzuddin 83757ced84 Re #1519:
- allow build on mingw32
 - fixed tests




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4619 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-16 09:19:08 +00:00
Sauw Ming e56902adea Re #1697: Use AVAudioSession to set audio session category and activate/deactivate audio session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4617 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-09 03:34:26 +00:00
Benny Prijono fac5c3bb23 Re #1703 General bug fixes: fixed mutex not released on some error condition
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4616 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 11:15:22 +00:00
Benny Prijono 6e2e6e27e6 Re #1703 General bug fixes: fixed some wrong null checking order
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4615 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 11:14:42 +00:00
Benny Prijono 6ba9e608bf Re #1703 General bug fixes: fixed wrong sizeof() in call to bzero(), memset(), or memcpy()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4614 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 11:13:11 +00:00
Benny Prijono 58dba631ff Re #1703: fixing general bugs. First installment: correct handling of snprintf return value
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4613 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 09:08:13 +00:00
Benny Prijono f30b7a6fa2 Misc (re #1630): fixed error in parsing ldflags for building Python module
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4612 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 06:45:08 +00:00
Benny Prijono 6a873428d6 Re #1694: fixed bug in the previous commit with the RTP config instantiation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4611 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 04:48:11 +00:00
Sauw Ming eecf85e11c Re #1697: Add device info in pj_get_sys_info() and set default clock rate for iPhone 5 running iOS7 to 44100Hz
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4610 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-03 10:26:14 +00:00
Nanang Izzuddin 6b9b89808d Close #1701: added received message info into incoming call callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4609 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-02 03:19:54 +00:00
Benny Prijono 64d67b1f92 Re #1519:
- Account API (prototype)
 - Account config implementation
 - Refactoring in types, endpoint, etc for better consistency
 - Should compile ok with make but not running yet


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4608 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-01 09:41:01 +00:00
Sauw Ming d9ff64c45b Re #1630 (misc): Fixed the incorrect fix of r4605 above.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4607 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-01 05:46:28 +00:00
Sauw Ming a179899278 Fixed #1674: Deadlock when third party media employs external lock and ICE is active
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4606 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-01 05:00:57 +00:00
Sauw Ming 9f529bce16 Re #1630 (misc): Fixed circular reference dependency build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4605 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-01 04:59:42 +00:00
Sauw Ming 868a8cb29a Re #1516: Add feature to ignore certain compilation flags from the --use-ndk-cflags option.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4604 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-30 05:12:29 +00:00
Nanang Izzuddin 72af1d7d29 Misc (re #1630): pjsua app param '--ip-addr' doesn't affect RTP address of local accounts.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4603 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-26 09:57:34 +00:00
Nanang Izzuddin 1c3e8fbdf1 Fix #1700: Added PJ_ICE_CAND_TYPE_MAX to represent the number ICE candidate types.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4602 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-25 04:57:26 +00:00
Nanang Izzuddin 435cff993b Misc (re #1630): Fixed compile warning of assigning var to itself.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4601 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-25 04:20:01 +00:00
Benny Prijono 1818fc2bf1 More re #1519: fixed build errors and added svn ignore for output files in java and python dirs
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4600 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-23 11:49:59 +00:00
Nanang Izzuddin 638c139ab5 Re #1516: Fixed configure-android in probing toolchain dir (reported that on ndk-r8, there is also 'gdbserver' dir under 'toolchains/arm/prebuilt').
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4599 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-23 08:58:23 +00:00
Benny Prijono fe10dde1df More re #1519: fixed some build errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4598 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-23 05:03:24 +00:00
Benny Prijono 5d96d69b6e Re #1519: initial implementation (incomplete) to demonstrate the API style/pattern
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4597 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-23 03:37:56 +00:00
Benny Prijono d29aca91d8 Creating pjsua2 branch for the glorious new high level API with swig support amen
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4595 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-16 08:19:57 +00:00
Sauw Ming ea0ec8ac3b Re #1516: Add support to build for other targets. Example:
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4594 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-09 05:53:58 +00:00
Nanang Izzuddin 3e568d0678 Misc (re #1630): Fixed bug of missing max_br/mbps/fs settings in h264 default profile initialization.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4593 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-09 05:22:47 +00:00
Nanang Izzuddin 98b734912b Fixed #1698: Follow account config in generating contact's secure scheme and deprecate PJSUA_SECURE_SCHEME.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4592 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-06 10:04:39 +00:00
Sauw Ming d735668793 Re #1576: Add support for iPhone simulator target
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4591 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-06 02:10:48 +00:00
Sauw Ming ecca2c2713 Re #1697: Add internal compile time option to disable the use of Audio Session API (deprecated)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4590 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-05 04:16:19 +00:00
Riza Sulistyo 850f8872a3 Re #1643: Fix crash due to insufficient command buffer size in get_cmd_name()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4589 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-05 03:50:22 +00:00
Sauw Ming 973c64d9ed Closed #1576: Add support for clang compiler. Configure-iphone will now try to use clang as the default
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4588 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-05 02:15:19 +00:00
Sauw Ming fe2ebe1f4f Re #1630 (misc): Fixed incorrect use of logical and
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4587 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-05 02:14:05 +00:00
Sauw Ming a74a3fd626 Closed #1696: IP change detection (Contact rewrite method) based on REGISTER final response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4586 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-04 10:07:45 +00:00
Nanang Izzuddin 264ace7579 Fix #1695: use pj_ice_sess_send_data() only when state is RUNNING.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4585 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-03 03:08:32 +00:00
Benny Prijono ead3aa062f Misc (re #1630): fixed link error when logging is completely disabled via PJ_LOG_MAX_LEVEL macro
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4584 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-30 04:03:22 +00:00
Sauw Ming a450b75121 Re #817: Fix replying to re-INVITE after it was cancelled (thanks to Saúl Ibarra Corretgé for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4583 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-21 09:32:24 +00:00
Nanang Izzuddin 9e2e5ad78a Misc (re #1630): Fixed bug of overlapping dst & src buffer for strcpy() in ice_session.c, reported to cause crash on iOS7.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4582 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-12 11:28:33 +00:00
Benny Prijono 33ac738473 Fixed #1694: Python enhancement: added QoS and RTP settings in account config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4581 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-09 08:39:20 +00:00
Benny Prijono 49d40b98d9 Fixed #1693: Pay attention to reg_hdr_list and sub_hdr_list in pjsua_acc_modify(), and also fixed pjsua_acc_get_config()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4580 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-06 08:02:24 +00:00
Benny Prijono 472e1de8f8 Re #1669: fixed bug introduced by r4523 which caused pjsua_acc_modify() to always reregister regardless of whether there is change or not
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4579 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-06 06:52:43 +00:00
Sauw Ming 615ffde2c2 Re #1630 (misc): Removed comment about GPL as the file is actually LGPL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4578 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-02 02:31:44 +00:00
Sauw Ming c552444061 Closed #1692: Allow multiple codecs in SDP answer
By default, the setting is disabled, to change it during run-time, use the function pjmedia_sdp_neg_set_allow_multiple_codecs().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4577 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-01 04:18:15 +00:00
Nanang Izzuddin ec90a69ac3 Fix #1691: Apply group lock mechanism in NAT detect to avoid deadlock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4573 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-24 08:06:59 +00:00
Nanang Izzuddin e65818e62f Misc (re #1630): Add randomizing interval for subscription refresh.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4572 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-22 09:17:30 +00:00
Benny Prijono c8cf7ae493 Closed #1690: Assertion in timer in SIP transaction: Timer being rescheduled when already running
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4567 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-19 06:31:28 +00:00
Benny Prijono a072abba0a More re #817: added logging
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4565 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-17 14:00:26 +00:00
Benny Prijono 369bf91f7c Misc re #1630: stop MWI subscription when account is unregistered, because we only start it after acc is registered
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4564 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-16 06:24:54 +00:00
Sauw Ming b833d2a24f Re #817: Initial work for allowing application to respond to re-INVITE manually.
Patches integrated in this fix (with some modifications for adjustment to the current trunk):
 - sip_inv-on_rx_reinvite.patch
 
 Move the place where to call the callback so the callback will still be called when the re-invite contains no SDP
 - sdp_neg_cancel_remote_offer
 
 pjmedia_sdp_neg_cancel_remote_offer() is no longer necessary since pjmedia_sdp_neg_cancel_offer() can already handle that. Only integrate the chart for sdp negotiation doc.
 - sip_inv-terminate-reinvite-tsx-on-cancel
 - sip_inv-cancel_sdp_neg_on_sending_negative_reply_to_reinvite
 - pjsip-allow_cancel_reinvite



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4562 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-15 04:23:31 +00:00
Sauw Ming 6f4a16e32b Re #1688: Add fix to check whether msg_data is null
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4561 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-15 01:29:03 +00:00
Sauw Ming 9d99f0f17f Re #1630: Fixed crash due to uninitialized dialog variable in pjsua_call_set_vid_strm()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4560 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-12 13:50:52 +00:00
Sauw Ming de8f79ce0a Fixed #1689: The bound address is not updated when UDP transport is restarted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4559 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-12 05:01:38 +00:00
Sauw Ming 21b3d5506f Re #1687: Add SDP negotiation flags in invite session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4556 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-10 04:43:52 +00:00
Sauw Ming 77dadeffa3 Closed #1688: Add support for different To and Target URI in outgoing call and sending IM
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4555 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-10 04:27:05 +00:00
Sauw Ming f21b037384 Closed #1687: Allow media type change during SDP negotiation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4554 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-09 07:17:39 +00:00
Nanang Izzuddin c0db622eea Re #1686: avoid cache entry destroy in update_res_cache() when it is being used by callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4553 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-08 01:44:48 +00:00
Nanang Izzuddin 2f362934d0 Fix #1686: release mutex when invoking callback to avoid deadlock. Also a bit memory usage optimization, i.e: avoid bloated pool by unfreed old/expired packet in cache entry.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4552 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-05 08:14:14 +00:00
Nanang Izzuddin d24fad9ff9 Fix #1685: When TURN destroy is requested in state RESOLVING, pending the destroy until resolver callback is invoked.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4551 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-05 08:00:06 +00:00
Riza Sulistyo 639f9f6721 Re #1680:
- Win64 Project properties modification, using x64 as target machine.
 - Fix incorrect data type which might result in unsafe code.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4550 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-02 11:45:57 +00:00
Benny Prijono 9b5dfe790a Fixed #1684 (Failed assertion when scheduling timer in the registration client):
- There is a potential race condition in pjsip_regc_set_delay_before_refresh() because it calls schedule_registration() without mutex protection
 - Check if the timer is active and cancel it in schedule_registration() as precaution


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4548 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-28 09:25:17 +00:00
Benny Prijono 938a804c8e More re #1683: added two SIPP scenarios to simulate IP/port change
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4547 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-27 10:08:24 +00:00
Benny Prijono 2a4dc2dee5 More re #1683:
- also update the Via port when only the port has changed AND either the received IP is public OR allow_contact_rewrite is set to 2


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4546 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-27 10:07:14 +00:00
Benny Prijono 444216fc04 Re #1630: fixed bug with via_rewrite feature. The via address is not updated on second IP change
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4545 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-26 08:07:14 +00:00
Benny Prijono 2aa09b28f2 Re #1668: fixed silly crash in pjsua_media.c:245 caused by r4543
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4544 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-26 01:02:02 +00:00
Benny Prijono 176f2678f9 Closed #1668: Option to use the IP address found in REGISTER response in the SDP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4543 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-24 09:53:16 +00:00
Sauw Ming fd8d5ddf66 Re #1682: Use account specific variable to keep track of the next rtp port to use.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4542 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-21 07:47:41 +00:00
Sauw Ming c41c45d17f Closed #1682: Configurable local port range for UDP media transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4539 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-21 05:12:58 +00:00
Nanang Izzuddin 69498fb477 Close #1681:
- Added compile-time settings PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE and PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE. The default values are both 64 KB when PJMEDIA_HAS_VIDEO is set, otherwise just zero (socket buffer size uses OS default). The settings will be applied to media transport UDP and ICE.
 - Also added run-time settings so_sndbuf_size and so_rcvbuf_size into ICE stream transport, STUN socket, and TURN socket. Default values are all zero.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4538 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 09:06:55 +00:00
Riza Sulistyo 25b575b336 Re #1680: Add initial support for Win64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4537 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 06:47:43 +00:00
Sauw Ming fd3e9ebae2 Closed #1678: Proper error handling in WAV writer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4536 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-18 04:08:08 +00:00
Nanang Izzuddin c6775cc6c7 Fixed #1676: fixed assertion when SDL initialization fails on library startup.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4535 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-13 09:36:49 +00:00
Nanang Izzuddin 5c4b102f97 Close #1675: Added callback to allow application to specify account to handle incoming message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4534 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-13 08:56:51 +00:00
Nanang Izzuddin 590f4e221b Re #1671: Destroy tdata_counter only after cleaning up dangling transmit buffer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4533 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-13 04:53:24 +00:00
Benny Prijono d074c10c13 Fixed #1673: Use Request URI when matching incoming request to account if the To URI contains tel: URL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4532 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-07 07:26:33 +00:00
Sauw Ming f74a2a2864 Re #1630 (misc): Fixed private ip detection in pjsua_acc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4531 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-31 13:40:18 +00:00
Nanang Izzuddin 9b63b68ec1 Fixed #1671:
- Transport manager maintains transmit buffer instance list, so any dangling transmit buffer will be freed when transport manager is destroyed. This is configurable via PJSIP_HAS_TX_DATA_LIST, the default is zero/disabled.
 - Updated publish client subscription to not use the 'internal' pjsip_tx_data list structure.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4530 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-30 09:27:49 +00:00
Sauw Ming 1483dcd38f Re #1630 (misc): Fixed various error handling (sip_transport.c and sip_endpoint.c)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4529 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-30 08:32:07 +00:00
Sauw Ming 7178c79099 Re #1664: Fixed wrong handling of poll error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4528 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-30 07:01:11 +00:00
Sauw Ming 9559aba831 Re #1630 (misc): Fixed typo and missing include in coreaudio dev
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4527 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-29 03:53:15 +00:00
Riza Sulistyo 82856f1eee Re #1655:
- Optimize android make file
 - Modify android project file to enable native debugging on eclipse
 - Add pjsua.cpp to svn ignore



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4526 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-28 12:20:21 +00:00
Riza Sulistyo 35112ebfed Re #1643: Restore configuration reset with added modification on app destroy. It was deleted from code to enable cli retain config values when restarted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4525 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-28 12:03:36 +00:00
Nanang Izzuddin 777e12a15e Fixed #1670:
- Added 'no_rtcp_sdes_bye' to 'pjsua_media_config'.
 - Modified behaviour of video stream in PJSUA to match audio stream behaviour, i.e: always send RTCP SDES when stream starts/stops and send RTCP BYE when stream stops, regardless whether 'no_rtcp_sdes_bye' is set.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4524 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-24 04:27:59 +00:00
Nanang Izzuddin 72845fcc94 Fix #1669: When (account/global) proxy setting is changed, unregister and reset registration internal state (acc->regc) before performing re-registration. The same mechanism is also applied for any account config changes on transport, credential info, or auth preference.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4523 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-23 07:41:17 +00:00
Riza Sulistyo ae83879e82 Re #1643:
- Fix duplicate shortcut for video commands
 - Fix restart command bug on legacy mode
 - Fix restart bug when using add-buddy options



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4522 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-23 03:48:31 +00:00
Benny Prijono 6ce69351d2 Fixed #1667: Handle incoming UPDATE before 101-199 response is received
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4521 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-18 05:54:22 +00:00
Benny Prijono aeb4ab91bf Misc re #1630: added more error logging to SDL, to print SDL error message when an operation fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4520 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-16 11:32:07 +00:00
Benny Prijono 175fc31319 Misc re #1630: link error on iOS build if LDFLAGS contains -ObjC and PJMEDIA_HAS_VIDEO is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4519 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-16 10:24:34 +00:00
Sauw Ming 2d24f27cdb Re #1662: Clear call descriptor before making call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4518 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-10 10:49:01 +00:00
Sauw Ming de7104384b Fixed #1666: Handle case when call unhold failed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4517 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-10 07:41:26 +00:00
Nanang Izzuddin 9731c28d04 Fix #1665: Added check for tx_data pending state in tsx_send_msg().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4516 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-06 09:10:56 +00:00
Nanang Izzuddin f54a4a5282 Fixed #1664: Fixed the bug of unhandled error events in non-connecting socket state in ioqueue epoll.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4515 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-03 10:32:35 +00:00
Nanang Izzuddin 9ac2bbec75 Fix #1663: Fixed pj_ioqueue_register_sock2() to avoid access to uninitialized pointer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4514 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-03 09:07:43 +00:00
Riza Sulistyo 397a2d0bc5 Re #1643: - Modification to shortcut handling(execution&display).
- Add exact match check to the parse input command process.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4513 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-03 08:47:14 +00:00
Benny Prijono e700ec5c3b Re #1656: change back frags_max to 3 from -1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4512 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-30 09:00:36 +00:00
Riza Sulistyo f7ff24cfee Re #1655: add svn ignore property for pjsua android project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4511 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-29 09:47:30 +00:00
Sauw Ming 0f9e7c092f Re #1655: Removed old ipjsua project and add svn ignore property
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4510 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-29 05:50:41 +00:00
Nanang Izzuddin a6af3fd3bb Fixed #1662: Reset/nullify the pointer to dialog in internal PJSUA call structure after an incoming call is terminated due to media channel init error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4509 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-29 05:30:57 +00:00
Benny Prijono 5a2bb8505b Re #1657: allow --simulator argument to appear at any position in configure-bb10 arguments
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4508 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-26 11:44:26 +00:00
Benny Prijono 952741e4c5 Misc (re #1630): check for sound device idle when pjsua library is started
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4507 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-26 09:21:29 +00:00
Benny Prijono b36ae3f293 Fixed #1661: Option to use SO_REUSEADDR for TCP and TLS listeners and use it by default on non-Windows platforms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4506 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-26 06:01:43 +00:00
Nanang Izzuddin 93e33d0b4f Re #1655: Update svn:ignore property for intermediate/output files.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4505 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-26 03:01:00 +00:00
Nanang Izzuddin 4e960ea4e5 Fixed #1660: SIP transport fallbacks to use default interface when pj_getipinterface() fails in getting local interface for the specified destination.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4504 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-25 10:59:06 +00:00
Benny Prijono fbf27c90d7 Re #1656: put back PLUGIN_ROUTING as per the latest suggestion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4503 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-25 10:07:11 +00:00
Benny Prijono cb5eded640 Re #1656: fixes to audio routing from latest suggestions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4502 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-25 08:09:42 +00:00
Riza Sulistyo 6cb9eb7bb5 Re #1636: change include directive to relative path to simplify build config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4501 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-25 04:59:25 +00:00
Benny Prijono 65a166e11b Re #1657: another change to configure-bb10 script to allow user to specify LDFLAGS in env var
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4500 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-25 01:40:14 +00:00
Benny Prijono a83f0d3bf5 Re #1657: changed configure-bb10 script to not add -O2 to CFLAGS if CFLAGS is already specified in the environment variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4499 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-25 01:20:27 +00:00
Benny Prijono 09484ef535 Fixed #1659: SDP offer version number is not incremented if previous re-INVITE offer was rejected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4498 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-24 09:52:25 +00:00
Sauw Ming 2c6709076d Re #1655: Modified pjsua iOS due to change in pjsua app framework
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4497 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-24 05:38:35 +00:00
Riza Sulistyo d70701f182 Re #1655: pjsua app CLI for android
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4496 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-24 04:55:00 +00:00
Benny Prijono ffaf7e5f28 Re #1656: fixes incorporated from latest email feedback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4495 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-24 01:17:40 +00:00
Benny Prijono c6b3a1b570 Re #1657: changed default CFLAGS in configure-bb10 to use -O2 to avoid surprise with performance
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4494 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-24 00:04:53 +00:00
Nanang Izzuddin 95678efb27 Re #1655: Removed pjsua_wince and PocketPj (replaced with pjsua CLI, which is integrated in the 'pjsua' project for Win desktop).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4493 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 11:10:20 +00:00
Nanang Izzuddin cd9e89100a Re #1655: Fixes on WM and Symbian due to latest pjsua framework changes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4492 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 10:59:52 +00:00
Benny Prijono 5bc861686b Re #1655, #1657: fixes due to latest pjsua framework changes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4491 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 08:31:30 +00:00
Benny Prijono 7d5141cf95 Re #1656: integration of Gurtej's patch (email re: PJSIP BB10 Performance and sound dev fixes)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4490 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 07:56:12 +00:00
Riza Sulistyo 9d4958ecfe Re #1643: Modification to avoid namespace conflict with pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4489 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 07:53:25 +00:00
Benny Prijono 6b1c8dce5b Re #1657: fixed the pjsip.pri generation script for linking with external third party libraries
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4488 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 05:39:13 +00:00
Benny Prijono a43835d276 Re #1630: fixed various warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4487 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 05:37:41 +00:00
Benny Prijono f1895c7ca9 Re #1630 (misc): protect against NULL in when dumping call statistic/displaying SRTP policy name which crashed BB10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4486 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 05:36:21 +00:00
Benny Prijono 66a9444b18 Re #1655, #1657: modified pjsua BB10 due to change in pjsua app framework
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4485 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 05:33:59 +00:00
Nanang Izzuddin ae5394d149 Re #1655: Initial implementation of pjsua CLI app for Windows Mobile (5.x & 6.x).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4484 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 10:36:11 +00:00
Sauw Ming 87f958d740 Re #1630: Fixed mp3 writer to work with PJSIP 2.x (thanks to Toni Rutar for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4483 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 09:52:02 +00:00
Benny Prijono 8f07765076 Re #1655, #1657: BB10 pjsua app setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4482 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 09:05:41 +00:00
Benny Prijono 0edf708754 Misc (re #1630): set default frames per packet for AMR codec to 1 (from 2) because it yields lower and more consistent CPU utilization on BB10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4481 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 09:00:55 +00:00
Benny Prijono 7e99804376 Re #1656: BB10 sound device fixes:
- fixed hardcoded clock rate etc.
 - handle audio routing setting when opening via param


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4480 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 08:57:44 +00:00
Benny Prijono 31e19f0755 Re #1657: set default pjsua media quality to 4 for BB10 to activate the small filter resampling
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4479 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 08:52:14 +00:00
Nanang Izzuddin 0edc69ce71 Re #1655: Removed symbian_ua and symbian_ua_gui.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4478 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 07:04:10 +00:00
Nanang Izzuddin 167e887bfa Re #1655: Initial implementation of pjsua CLI app for Symbian.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4477 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 06:50:07 +00:00
Riza Sulistyo 0c5d8f768d Re #1643: Code restructure + modification to handle non blocking mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4476 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 06:05:06 +00:00
Benny Prijono fb59333b03 Re #1656: fixed bug from c4467
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4475 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-16 09:41:16 +00:00
Sauw Ming 3f922fc08e Fixed #1658: Stop media endpoint's worker threads first when destroying media subsystem
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4474 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-16 09:12:59 +00:00
Benny Prijono 7f0f30b1e4 More re #1657, #1655: added Momentics project file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4473 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-16 00:59:39 +00:00
Benny Prijono 32666790c9 Re #1657, #1655: ignore BB10 Momentics IDE files from svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4472 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 10:49:25 +00:00
Benny Prijono ccff78bf69 Re #1657, #1655: initial implementation of pjsua CLI app for BlackBerry BB10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4471 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 10:47:28 +00:00
Benny Prijono c9f4b56e85 Re #1630: fixed missing parenthesis in disabled block
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4470 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 10:40:26 +00:00
Benny Prijono 7e02b4660b Re #1657: config_site_sample.h settings for BB10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4469 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 10:39:00 +00:00
Benny Prijono b1b0658858 Re #1657: BB Integration:
- The configure-bb10 now outputs pjsip.pri to be included by application's .pro file in order to get PJSIP's settings included in the app's project
 - The configure-bb10 now also sets PJ_CONFIG_BB10 macro for platform detection by lib/app



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4468 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 10:37:59 +00:00
Benny Prijono 9ea1bcd1a9 Re #1656: add hardware echo cancellation capability to BB10 audio device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4467 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 10:26:58 +00:00
Sauw Ming 59b1a628cd Re #1630: Modified OpenSSL library names for Win platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4466 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-15 08:22:00 +00:00
Sauw Ming 39280b8d8b Re #1655: Moved the definition of USE_GUI to pjsua iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4465 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-12 09:20:31 +00:00
Sauw Ming 57e265200d Re #1655: pjsua app CLI for iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4464 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-12 08:05:12 +00:00
Nanang Izzuddin 7e5ee37ea5 Misc (re #1630): Added doxygen describing the persistency of message data (custom/additional headers, etc) in pjsua_call_answer().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4463 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-10 05:57:46 +00:00
Nanang Izzuddin 3751fbbdeb Fix #1654: do not cancel SDP offer when transaction state changes from 'completed' to 'terminated', as it have been cancelled before (when tsx state is 'completed').
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4462 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-09 10:12:54 +00:00
Riza Sulistyo bc9c677287 Re #1643: Code restructure+add callback to support symbian gui app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4461 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-05 03:02:19 +00:00
Benny Prijono 83bded706b More re #1653: bug in previous checkin, the local_hold flag was released regardless of the flag
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4460 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-03 22:49:43 +00:00
Benny Prijono 8e4a11380f More re #1643: changed svn file type property to native
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4459 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-03 22:41:23 +00:00
Nanang Izzuddin 8c8ffa38a4 Fix #1811: Set SDP direction attribute to "sendonly" in answering call unhold request after double holds to maintain the local hold status.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4458 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-03 10:04:18 +00:00
Benny Prijono 2342996ebb Fixed #1653: [incompatible] pjsua_call_update() API should not release hold
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4457 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-03 08:21:47 +00:00
Benny Prijono 5ecc79a71f Fixed #1652: Media feature tag "+sip.ice" is not used because of wrong account initialization sequence
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4456 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-03 01:38:22 +00:00
Benny Prijono ddc6ce3575 Fixed #1651: incoming CANCEL request is not reported in any callbacks
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4455 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-03 00:54:37 +00:00
Sauw Ming 67feae74e2 Re #1630 (misc): Added missing destroy of mutexes. This may cause failure to recreate the mutexes in some platforms (such as BB10).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4454 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-29 04:55:43 +00:00
Sauw Ming 8f5b0a5b49 Re #1630 (misc): Fixed compilation problem due to r4275 if PJSIP_CHECK_VIA_SENT_BY is set
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4453 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-29 02:19:27 +00:00
Sauw Ming 6ec1b25285 Fixed #1650: Close sound device when outgoing call fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4452 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-28 04:00:28 +00:00
Sauw Ming ba76e9b74b Re #1630: Prevent the update of TCP transport address if the address is zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4451 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-27 03:19:51 +00:00
Nanang Izzuddin be038078b2 Fix #1649: Invoke SIP TLS transport callback when transport is shutdown by TLS certificate verification error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4450 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-22 08:28:42 +00:00
Benny Prijono 2906cb3d88 Fixed #1648: Timer heap new API cancel_if_active() should not assert if given bad entry
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4449 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-22 03:16:35 +00:00
Benny Prijono b3a1ee28ba More on re #1646: added flag to prevent another transmit data from being transmitted while we are waiting for the previous one to be flushed from transport queue
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4448 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-21 11:38:05 +00:00
Nanang Izzuddin 6a2c85188f Close #1647: updated subscription lookup in on_new_transaction() to skip subscription with NO_EVENT_ID and already terminated.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4447 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-21 08:28:21 +00:00
Benny Prijono 8db8aa1dad Part 2, fixed #1646: crash in transaction when it is destroyed while transport operation is in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4446 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-21 06:07:28 +00:00
Nanang Izzuddin 75d41475ef Misc (re #1630): Exported parse_generic_array_hdr() implementation, named pjsip_parse_generic_array_hdr_imp().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4445 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-20 11:29:08 +00:00
Benny Prijono 29c337bcc1 Part 1 of re #1646: fixed the deadlock problem in SIP transaction related to transport event
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4444 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-20 11:02:45 +00:00
Nanang Izzuddin 06a3c50e57 Misc (re #1630): Added compile-time setting to configure audio switchboard buffer size.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4443 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-20 06:56:19 +00:00
Nanang Izzuddin 532f572baf Close #1645: Added run-time setting 'pjsip_cfg()->req_has_via_alias' and compile-time setting 'PJSIP_REQ_HAS_VIA_ALIAS', the default value is PJ_TRUE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4442 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-19 07:39:25 +00:00
Nanang Izzuddin ff5531dce1 Re #1644: Added run-time setting 'pjsip_cfg()->follow_early_media_fork' and compile-time setting 'PJSIP_FOLLOW_EARLY_MEDIA_FORK', the default value is PJ_TRUE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4441 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-19 03:51:10 +00:00
Riza Sulistyo 7da46cd3bd Re #1643: add initial support for CLI
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4440 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-14 07:18:13 +00:00
Benny Prijono 5d47423d8e Fixed #1642: Media transport may not be cleaned up if call is hung up quickly
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4439 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-13 04:47:19 +00:00
Sauw Ming d0d0214b93 Fixed #1641: Handling transport disconnection when the transaction state is still in null state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4438 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-12 08:18:12 +00:00
Benny Prijono 3435f2c226 Fixed #1640: Registration is terminated permanently on 480 (Temporarily Not Available) response when it should have been retried
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4436 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-11 10:06:50 +00:00
Nanang Izzuddin ed05649d8d Re #1639: merged android branch into trunk (except sample apps, i.e: apjsua & apjloader)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4435 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-11 06:32:58 +00:00
Benny Prijono 07ff84d8cf Fixed #1638: more group lock fixes, this time for ioqueue_epoll
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4434 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-11 05:27:23 +00:00
Sauw Ming 93b3252fb3 Fixed #1637: Crash in pjsua_media_channel_update() if one media gets rejected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4433 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-08 08:52:40 +00:00
Riza Sulistyo 7892a637e0 Re #1636: add initial support for bdIMAD
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4432 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-08 08:02:48 +00:00
Sauw Ming ef9cffa687 Fixed #1633: Crash if on_redirected() callback is not implemented and UAC receives 422 response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4425 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-06 09:36:05 +00:00
Sauw Ming 97227d7447 Fixed #1632: Remove Contact header in MESSAGE requests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4424 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-06 06:58:40 +00:00
Sauw Ming 91b3146546 Re #1631: Fixed typo in null_port (thanks to Tomas Valenta for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4423 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-06 06:06:17 +00:00
Sauw Ming 4f6ad783cb Re #1630: Fixed incorrect parameter in Python wrapper.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4422 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-06 06:00:18 +00:00
Sauw Ming dd44fb1ba1 Fixed #1629: Add pjsua_call_set_hold2() API to allow update of Contact header
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4421 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-06 05:55:09 +00:00
Benny Prijono 74f8514333 Implementation of Re #1628: Modify SIP transaction to use group lock to avoid deadlock etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4420 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 11:59:54 +00:00
Sauw Ming dcd5738270 Changed version to 2.1.0-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4419 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 11:23:52 +00:00
Sauw Ming 54fc4c0338 Changed version to 2.1.0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4415 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 08:34:45 +00:00
Riza Sulistyo 4741b802e6 Misc (re #1559): add macro PJMEDIA_SDL_LIB to manually specify SDL library name on MSVC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4414 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 08:21:02 +00:00
Sauw Ming d4f0ba486a Re #1616: Fixed assertion trying to release group lock when STUN transaction is already destroyed in the callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4413 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 06:29:15 +00:00
Riza Sulistyo 152b642843 Misc (re #1559): fixed compile errors/warnings on MSVC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4412 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 03:12:32 +00:00
Nanang Izzuddin 414d34ca74 Misc (re #1559): fixed compile errors/warnings on Symbian platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4411 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-04 04:34:38 +00:00
Riza Sulistyo dd6810f384 Re #1616: symbian port of ioqueue & timer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4374 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-27 07:15:57 +00:00
Sauw Ming 8ba9a4101d Fixed #1626: Assertion when remote sends re-INVITE with less media
Included in the fix is sipp testing scenario.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4373 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-27 06:44:44 +00:00
Riza Sulistyo bd537010a1 Re #1617: added concur_test.c to visual studio pjnath_test project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4372 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-27 05:36:26 +00:00
Nanang Izzuddin 581cf335e5 Close #1627: invoke on_tsx_state_changed() callback from on_call_state(DISCONNECTED).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4371 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-26 12:38:27 +00:00
Nanang Izzuddin 05c3eaf39b Close #1615: Fixed bug in URI scheme check macro PJSIP_URI_SCHEME_IS_SIP()/SIPS/TEL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4370 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-26 05:30:00 +00:00
Benny Prijono 2508587130 Misc re #1562: disable trace in the jitter buffer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4369 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 21:55:54 +00:00
Benny Prijono 6357137c68 Re #1617: prevent TURN session from sending anything once it is in deallocating state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4368 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 21:53:28 +00:00
Nanang Izzuddin 1d66832a6a Close #1625: Introduced new API pjmedia_sdp_validate2() for allowing SDP media without c= line when port is zero, currently it is only applied in validating remote SDP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4367 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 20:49:19 +00:00
Sauw Ming bbc140f76a Sipit30 misc (re #1559): Increased maximum key length for SRTP crypto key
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4366 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 20:41:31 +00:00
Benny Prijono 199d0148bb Re #1624: fixed representation in ICE to make it more IPv6 ready
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4365 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 18:06:51 +00:00
Nanang Izzuddin 3b06333cc5 Sipit30 misc (re #1559): Updated log for SRTP key to use base64 as in the SDP (easier in tracing which key for which stream)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4364 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 17:01:28 +00:00
Benny Prijono 7f8625a806 Re #1623: fixed deadlock between conference mutex and ICE. Scenario:
- sound device thread calls put_frame() which gets the conf mutex, and is calling transport sendto() to send RTP packet which requires ICE mutex. 
 - The worker thread finished ICE negotiation and notifies PJSUA-LIB and application while holding ICE group lock, app then do conf_connect() which causes deadlock.

This fix defer the callback to a timer.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4363 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 16:43:24 +00:00
Nanang Izzuddin 837437fb50 Re #1622: fixed bad default aspect ratio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4362 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 14:51:56 +00:00
Nanang Izzuddin d062f131f3 Close #1622: Apply H264 SDP fmtp parameters: max-fs, max-mbps, max-br.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4361 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 14:48:53 +00:00
Benny Prijono e00cbe02e9 Fixed #1617: major synchronization fixes in PJNATH with incorporation of group lock to avoid deadlock and crashes due to race conditions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4360 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 11:26:35 +00:00
Benny Prijono ac932bb522 Fixed #1616: Implementation of Group lock and other foundation in PJLIB for fixing synchronization issues
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4359 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 11:18:36 +00:00
Nanang Izzuddin bb3ae74c5a Misc (re #1562): Minor updates in pjsua app: fixed wrong error message and increased buffer for input menu.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4358 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-20 21:00:42 +00:00
Benny Prijono 349d800c4d Fixed #1621: Handle the case when ICE session cannot create valid checklist
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4357 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 20:05:59 +00:00
Nanang Izzuddin 39a4937dc5 Re #1242: fixed silly mistake unremoved test code.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4356 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 19:45:45 +00:00
Benny Prijono 4fe56e71d3 More #1613: fixed bugs in the 'fixes' above:
- the socket was closed when ioctl() is called
 - the 'iff' structure was not initialized


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4355 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 16:27:37 +00:00
Nanang Izzuddin fdc115fa8a Misc (re #1559): Added INFO into Allow header for PJSUA.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4354 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 16:22:31 +00:00
Nanang Izzuddin 40329b2174 Re #1242: Fixed overridden media direction and c=0.0.0.0 line in the re-invite. For example when sending call hold and remote answers with multiple codecs, re-invite of lock codec is sent with SDP a=sendrecv line.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4353 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 16:16:37 +00:00
Sauw Ming 462e6c18f5 Fixed #1620: Fix the calculation of transmission count during retransmission of STUN request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4352 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 14:37:28 +00:00
Benny Prijono 2c10892764 Fixed #1619: transport error on re-INVITE should not terminate call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4351 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 05:18:36 +00:00
Nanang Izzuddin f53a34ecd8 Re #1242: Fixed ICE nego completion check as it always returns FALSE when peer doesn't support ICE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4350 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-15 03:57:31 +00:00
Nanang Izzuddin 3b3ddb291f Close #1618: Fixed SSL socket to check for async sending operation error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4349 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-14 09:38:31 +00:00
Sauw Ming ad85d33f19 Re #1608: Fixed array size calculation of amr bitrates array.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4348 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-14 02:00:13 +00:00
Nanang Izzuddin 0c662eadf7 Close #1614: Added call redirect option PJSIP_REDIRECT_ACCEPT_REPLACE to accept call redirection with replaced 'To' header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4347 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-13 10:19:25 +00:00
Nanang Izzuddin 2343c259d5 Re #1568: (PJSIP 2.x) No need to restart media when remote RTP address changed but ICE transport is running.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4345 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-13 07:43:32 +00:00
Nanang Izzuddin 82d1fee083 Re #1610: Workaround for crash in sess_on_send_msg() callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4344 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-08 07:33:23 +00:00
Nanang Izzuddin a2174066e7 Close #1602: configurable local port range for ICE transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4343 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-07 09:35:34 +00:00
Nanang Izzuddin c6c69db96e Close #1242: Single re-INVITE/UPDATE for both lock codec and ICE negotiation updates.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4342 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-06 13:48:45 +00:00
Nanang Izzuddin 544c6db59e Misc (re #1562): pjsua_call_set_vid_strm() should acquire call dialog.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4341 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-05 12:21:30 +00:00
Benny Prijono 2ce87f1753 Re #1570: Update to work with audio routing (speaker vs handset). Thanks Bob Cripps for the patch!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4340 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-05 05:15:01 +00:00
Sauw Ming 2573b434fe Re #1608: Try to store the number of frames in the packet in case SKP_Silk_SDK_get_TOC() couldn't return the correct number of frames during decode
This was reported to happen in SILK ARM version (thanks to Marcus for the report)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4339 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-31 05:23:46 +00:00
Sauw Ming b3010ae7ee Re #1568: (PJSIP 2.x) Apply pjsua_media_config before detecting media change and fixed encoding name string duplication.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4336 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-29 08:15:02 +00:00
Sauw Ming 67a4044a31 Re #1608: Fixed the way codec is initialized, enumerated, and deinit since both NB and WB use the same factory
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4335 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-29 08:09:15 +00:00
Nanang Izzuddin 192726c1b5 Re #1603: Replaced sock_sendto() with ioqueue_sendto(), as if ioqueue replaces the socket first (in read operation), sock_sendto() will raise "Bad file descriptor" error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4333 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 09:53:39 +00:00
Sauw Ming 0370289846 Re #1608: Modified VS project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4332 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 06:22:31 +00:00
Sauw Ming 2f67f4741c Re #1608: Add support for OpenCORE AMR-WB
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4331 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 06:18:18 +00:00
Sauw Ming 35367d44bc Re #1559: Related to r4312, get the latest account config first before modifying the account
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4330 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 06:01:26 +00:00
Sauw Ming 5ee302e8f5 Re #1586: Fixed samples_per_frame calculation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4328 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 01:40:04 +00:00
Sauw Ming 017ebf6aaa Re #1613: Remove unused variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4327 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-22 04:55:11 +00:00
Sauw Ming 90c262ea98 Fixed #1613: Use appropriate request for ioctl() function to access the interface flags
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4326 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-22 03:39:34 +00:00
Benny Prijono d752afdd33 Fixed #1612: problems with jitter buffer fixed mode operation (prefetch may go lower than configured minimum prefetch, and the discard needs to be disabled too)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4325 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-18 08:47:39 +00:00
Benny Prijono 919fff2d5f Re #1610: workaround for crash in on_data_sent()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4324 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-18 07:52:51 +00:00
Benny Prijono 88fede97c8 Fixed #1611: Add missing Supported header in UPDATE for Session Timers. Also fixed minor placement error of pjsip_dlg_dec_lock() in pjsip_inv_update(). The dec_lock was called too early before calling pjsip_timer_update_req().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4323 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-17 12:57:46 +00:00
Benny Prijono 2e5b5c63e5 Really fix #1609 after better understanding about the problem. This changeset:
- undo r4320
 - remove the reliance on NULL termination in sip_auth_client.c
 - add the NULL termination when printing tel: URI just in case other components use it



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4322 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-17 10:09:09 +00:00
Benny Prijono b5c51b65ae Fixed #1610: Workaround for reported crash on stun_sock's on_data_recvfrom() callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4321 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-17 09:45:32 +00:00
Benny Prijono c4e8bdcc31 Fixed #1609: Garbage character may be printed after the URI parameter in Authorization/Proxy-Authorization header
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4320 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-17 09:16:10 +00:00
Benny Prijono 23b19389b2 Fixed #1606: Support query-only on registration bindings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4319 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-16 10:20:55 +00:00
Benny Prijono 3c53b4602a Fixed #1607: Send UDP keep-alive to original request address if response comes from different address
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4318 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-16 09:51:45 +00:00
Nanang Izzuddin bf7b3a14b4 Fix #1603: reinit UDP socket of DNS resolver when sendto() returning EPIPE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4317 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-15 14:21:07 +00:00
Benny Prijono d7636bd4ab Re #1570: Update BB10 audio driver to the latest changes in SDK:
1. Disable MMAP on play and record
 2. Use type VIDEO_CHAT as opposed to VOICE (recommended by RIM audio team)
 3. Free up audio_manager handles properly (RIM audio team code review)
 4. Set the play to headset because VIDEO_CHAT defaults to speaker (recommended RIM audio team)
 5. Removed the conditional compile for the old SDK version as nothing that’s not built with the current SDK will run on BB10

Thank you Bob Cripps for the patch!


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4316 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-14 10:08:20 +00:00
Nanang Izzuddin 0fdbd978d8 Fix #1605: always re-init media channel for SDP re-offer/answer generation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4315 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-11 08:53:52 +00:00
Nanang Izzuddin 12c4fdce15 Fix #1604: crash caused by double destructions in ICE stream transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4314 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-11 04:10:08 +00:00
Sauw Ming 966a1381ff Fixed #1601: Add locking mechanism when ICE transport is in negotiation state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4313 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-04 07:37:27 +00:00
Sauw Ming 9db6658d54 Re #1559: Fixed registration timeout setting used by ipjsua to take effect immediately.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4312 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-03 09:26:29 +00:00
Nanang Izzuddin 19f08d6852 Misc (re #1562): Update ffmpeg version check regarding 'AVCodec::encode' removal (see also r4277).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4311 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-20 06:45:09 +00:00
Nanang Izzuddin 4a298d5775 Fix #1600: V4L2 capture device always re-enqueues buffer with index zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4310 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-19 05:38:28 +00:00
Sauw Ming 3c89a2529a Fixed #1599: Fixed bug that caused new contact not being used in UPDATE/re-INVITE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4309 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-14 07:49:38 +00:00
Sauw Ming 6abce2c0b8 Re #1559: Fix dependencies when running parallel make (thanks Shaun Ruffell for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4308 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-13 06:37:05 +00:00
Sauw Ming f78362b7ff Re #1595: Restrict the fix in r4300 so it only applies to outgoing call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4307 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-13 03:46:12 +00:00
Sauw Ming 8a3ce34f53 Fixed #1598: Assertion when sip error code is not set (thanks Peter Koletzki for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4306 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-12 06:20:28 +00:00
Benny Prijono 3a05a85db7 Misc (re #1562): Add a protection in med_tp_timer_cb() against call that may have been terminated before ICE callback is called. It has been reported that this has caused a crash, but we cannot reproduce it. Thanks Karina for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4305 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-05 10:40:56 +00:00
Benny Prijono 6ad9a6ed1f Fixed #1597: Handle socket failure in STUN resolution when coming back from iPhone/iOS background mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4304 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-05 09:48:44 +00:00
Sauw Ming 8f07b96056 Fixes #1596: Fix handling of incoming UPDATE request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4301 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-26 02:54:17 +00:00
Sauw Ming 0979e8dba3 Fixes #1595: Allow call hangup immediately after outgoing call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4300 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-26 02:04:17 +00:00
Nanang Izzuddin ecd48f6446 Fix #1593: avoid wrap around in caching pool capacity value.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4298 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-22 05:00:01 +00:00
Benny Prijono 79eddc4cdd Re #1562: PJSUA-LIB shutdown operation may block for a long time if system time is modified while the shutdown is in progress. Also fixed similar issue in STUN client.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4297 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-13 08:46:42 +00:00
Nanang Izzuddin 6e2e0f2042 Re #1556: Fixed hash key case insensitive comparison. This is reported to cause CANCEL request will be responded with 481 (Transaction does not exist) when the Via branch is not started with magic cookie (old SIP RFC), thanks Marcus Froeschl for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4296 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-07 04:56:26 +00:00
Nanang Izzuddin 4aa539e224 Re #1590: Fixed pjsip_rx_data_clone() when there are multiple instances of a single header type (thanks Mike Evans for the report and the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4295 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-06 05:22:11 +00:00
Nanang Izzuddin c93d4fe56a Misc (re #1562): Fixed Symbian build errors on S60 5th edition SDK.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4294 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-06 05:02:10 +00:00
Sauw Ming 647045aa4b Re #1586: Fixed useInBandFEC setting and default value setting in pjmedia_codec_silk_set_config()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4293 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-03 03:32:09 +00:00
Nanang Izzuddin e01ef25ab9 Re #1546: apjloader updates: handle activity destroy-recreate, e.g: on orientation change or device sleep, and minors (cleaner activity handler, copy log to logcat, etc).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4292 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-01 06:14:15 +00:00
Nanang Izzuddin d9a37eda25 Re #1590: Fixed compile error 'invalid conversion from `pj_list_type*' to `pjsip_module*' on Symbian (thanks Rubel for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4291 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-01 03:45:40 +00:00
Sauw Ming 443a16a35c Re #1562 (misc): Fixed uninitialized frame for conversion in video port
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4290 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-01 03:06:33 +00:00
Nanang Izzuddin 2ff094467a Re #1546: Initial version of generic console application loader.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4289 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-29 07:22:44 +00:00
Benny Prijono eed4223f7c Misc (re #1559): Require name-addr to have the quote if display name is given. Previously an URI like this will be accepted: "301 301" sip:301@host
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4288 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-26 09:30:37 +00:00
Nanang Izzuddin 3b27e8f073 Re #1546: removed Makefile for apjsua & updated svn ignore prop for swig generated java files.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4287 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-25 07:45:37 +00:00
Nanang Izzuddin 6be3045888 Re #1546:
- changed apjsua build tool to ndk-build (ndk-gdb requires this)
 - minor on svn stuffs: removed auto-generated files/dirs, set ignore props



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4286 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-25 07:32:47 +00:00
Nanang Izzuddin 36bdd9cf13 Re #1569: Fixed missing default value setting for pjsip_cfg()->allow_tx_hash_in_uri.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4285 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-19 04:23:57 +00:00
Sauw Ming fd5342fd84 Re #1546: Fixed race condition in text i/o thread for apjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4284 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-18 08:36:13 +00:00
Sauw Ming 10584d27d4 Re #1559: Fixed potential buffer overflow when duplicating the string
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4283 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-12 06:19:32 +00:00
Nanang Izzuddin d4abcc085f Re #1589: Removed "--disable-floating-point" from "configure-iphone".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4282 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-08 09:05:45 +00:00
Sauw Ming b6c3f36e97 Fixed #1592: Multithreading issues in PJSIP (fixing pj_timer_heap_poll() and lock order inversion in tcp/tls transport)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4281 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-08 08:13:12 +00:00
Sauw Ming 87d7051e73 Fixed #1591: Fixed dialog locking in acquire_call() when media transport is created asynchronously.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4280 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-08 05:23:34 +00:00
Sauw Ming 460971fc7d Re #1562: Fixed default custom media transport creation callback flag. By default, custom media transport should close its member transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4279 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-08 02:55:22 +00:00
Sauw Ming f500a55751 Re #1586: Add support for SILK multiple frames per packet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4278 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-05 10:04:54 +00:00
Nanang Izzuddin 9756efd816 Misc (re #1562): Fixed ffmpeg codec wrapper compile error of undefined 'AVCodec::encode' (removed in the recent ffmpeg version).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4277 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-04 07:55:41 +00:00
Nanang Izzuddin aa6742707e Misc (re #1562): pkgconfig removed duplicated framework name from Libs without removing the '-framework' option itself, which caused link error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4276 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-04 07:36:39 +00:00
Benny Prijono 6c80455c1e Close #1590: APIs to facilitate pending processing of pjsip_rx_data
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4275 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-04 06:11:58 +00:00
Benny Prijono 02eced275e Close #1589: Enable floating point by default for iOS target
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4274 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-02 04:00:19 +00:00
Benny Prijono eb98937948 Fixed #1588: State PJSIP_INV_STATE_NULL is called after call has been disconnected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4273 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-02 02:47:08 +00:00
Sauw Ming 65f24036c5 Re #1586: Implement SILK config setting and fixed decoding fmtp
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4272 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-01 11:11:37 +00:00
Sauw Ming ec02c0850b Re #1586: Removed configure warning when using --with-silk option
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4271 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-01 11:08:08 +00:00
Benny Prijono 3ee340a3a9 More re #1586: added PJMEDIA_HAS_SILK_CODEC to config_auto.h.in
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4270 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-01 10:18:58 +00:00
Nanang Izzuddin 0bcd10fde9 Re #1587: Respond to call replace request with the last provisional response sent in the replaced call.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4269 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-28 10:07:22 +00:00
Nanang Izzuddin 3f74e4bdbf Re #1587:
- Don't answer call replace request with 200 if the replaced call hasn't reach confirmed state and has UAS role.
 - Only apply accept_replace_in_early_state when call is in early state.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4268 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-28 08:56:08 +00:00
Nanang Izzuddin 32709d58d1 Close #1587: Added settings to accept call replace when in early state and as UAS: accept_replace_in_early_state in pjsip_cfg_t and PJSIP_ACCEPT_REPLACE_IN_EARLY_STATE macro.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4267 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-28 06:17:11 +00:00
Nanang Izzuddin a4ac2281d2 Misc (re #1559): Consistent use of SAMPLES_PER_FRAME in G711.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4266 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-26 05:55:18 +00:00
Sauw Ming 03df4246da Re #1568: Add build config for SILK
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4265 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-25 02:23:06 +00:00
Nanang Izzuddin e14008ea70 Re #1586: Initial version of SILK wrapper.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4264 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-24 06:58:16 +00:00
Benny Prijono 3d6980ab6b Fixed #1582: Transmit the last DTMF packet (containing the E bit) three times
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4263 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-20 11:26:16 +00:00
Benny Prijono e135917e37 Fixed #1585: IPv6 support for SIP TCP and TLS transports and PJSUA-LIB v2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4262 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-20 06:00:23 +00:00
Sauw Ming 28bd76b7ac Re #1583: Removed testing scenario accidentally left in the code
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4260 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-18 09:38:44 +00:00
Sauw Ming 065d554b99 Re #1583: Fixed error propagation that caused the disconnection of the transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4259 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-18 09:35:54 +00:00
Sauw Ming a602fe6ec4 Fixed #1583: Unexpected SIP message transmission after transaction has timed-out
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4258 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-18 08:39:46 +00:00
Sauw Ming af9c34d3a1 Re #1562: Add PJMEDIA_HAS_VIDEO macro for vid_stream_info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4257 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-17 03:11:44 +00:00
Benny Prijono 5b2e680d03 More re #1570: fixed typo in configure-bb
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4256 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-14 23:40:21 +00:00
Benny Prijono 9c752fab86 Transmit DTMF with 'End' bit when the stream is being destroyed. This closes #1582
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4255 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-14 13:18:57 +00:00
Nanang Izzuddin f0aabd3362 Close #1568:
- Added media change detection based on SDP negotiation result and local codec param settings, the detection result will decide whether the media should be re-initialized after the SDP negotiation.
 - Fixed stream to keep the duplicate of codec param for the stream info (was only copying the pointer).
 - Introduced macro PJSUA_THIRD_PARTY_STREAM_HAS_GET_INFO & PJSUA_THIRD_PARTY_STREAM_HAS_GET_STAT.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4254 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-14 04:06:29 +00:00
Sauw Ming 994e9ed3ad Re #1562: Add support for multiple GUIDs that represents the same format (such as I420/IYUV) in DShow device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4253 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-13 08:35:24 +00:00
Sauw Ming 9b7e255139 Fixed #1581: Fixed crash in video port when the capturer is passive, its stream is passive, and converter is needed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4252 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-13 08:08:01 +00:00
Benny Prijono 13a4e2444f More #1570: Added the missing -laudio_manager to LDFLAGS, which is required by R6 SDK. Thanks Bob Cripps for the patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4251 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-11 06:55:53 +00:00
Sauw Ming 8906e6d0d6 Re #1518: Modified Android Configuration interface setting as required instead of optional.
Requesting Android Configuration interface in optional mode is known to cause problem in devices such as Asus TFT 101 (and possibly HTC One X as well).



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4250 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-10 10:58:08 +00:00
Nanang Izzuddin 4064539a24 Re #1573: Fixed improper unlock in do_handshake().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4249 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-10 02:15:32 +00:00
Nanang Izzuddin b93f46a674 Re #1573: Fixed bad cast on ioqueue send key to send data in asock_on_data_sent().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4248 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-08 01:05:56 +00:00
Nanang Izzuddin 1d5748236c Fix #1573:
- Never hold lock while calling pj_activesock_send*() to avoid deadlock.
 - Refactor the sending buffer management.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4247 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-07 08:58:48 +00:00
Benny Prijono 5324e3b1f5 Misc (re #1562): pkgconfig removed multiple occurences of -framework from Libs command-line causing link error (thanks Samuel Vinson for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4246 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-06 09:38:33 +00:00
Nanang Izzuddin 3b078ed1dd Fix #1580: Add SDP connection line in disabled or rejected media when there is none (in media/session level).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4245 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-05 03:23:01 +00:00
Nanang Izzuddin eead47497d Fix #1574: Fixed silly mistake in the media channel init condition in pjsua_call_answer2().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4244 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-03 12:27:01 +00:00
Nanang Izzuddin be8ab38d78 Fix #1579: Update Symbian APS/VAS to use new pjmedia_format.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4243 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 11:42:17 +00:00
Benny Prijono 164edc0e95 Fixed #1578: Possible deadlock when call is adding new media with ICE and STUN enabled:
svn commit pjsip/src/pjsua-lib/pjsua_media.c -m Fixed

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4242 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 10:07:05 +00:00
Sauw Ming 2da9fc6df4 Re #1562: Add support for I420 format in DShow video device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4241 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 09:30:14 +00:00
Sauw Ming 062c49f29d Fixed #1577: Add pjmedia setting to include SDP bandwidth modifier "TIAS" (RFC3890)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4240 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 09:03:36 +00:00
Nanang Izzuddin 9846a0c606 Misc (re #1562): fixed compile warnings on Win platform (some are reported as compile error on Symbian).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4239 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 06:29:13 +00:00
Nanang Izzuddin b4bad7056b Misc (#1559): fixed warnings of unused var on Symbian platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4238 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 06:17:56 +00:00
Sauw Ming 742d0001f6 Re #1546: Assign default value for USE_GUI on Android
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4237 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-31 05:25:59 +00:00
Sauw Ming eba7bdc29f Fixed #1572: duplicate transport attributes when modifying video stream call
Only encode the media transport if changing the direction from NONE to !NONE.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4236 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-24 03:49:15 +00:00
Sauw Ming 8976120f53 Re #1559: Removed unnecessary PJ_UNUSED_ARG(payload_len) in pjmedia_rtp_encode_rtp()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4235 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-24 03:15:42 +00:00
Sauw Ming c27560cda8 Re #1562: Fixed compilation error if PJMEDIA_HAS_PASSTHROUGH_CODECS is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4234 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-22 09:07:40 +00:00
Sauw Ming 09b10825dd Re #1559: Removed unnecessary assertion from sock_bsd's pj_sock_recvfrom() implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4233 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-21 11:16:06 +00:00
Sauw Ming f21421fc3e Re #1559: Add support for OS X version after 10.7.x
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4232 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-20 06:01:41 +00:00
Sauw Ming 4c54ead138 Re #1518: Add JNI-based Android audio device
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4231 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-15 07:58:46 +00:00
Benny Prijono cc61b74472 Fixed #1570: Update BlackBerry BB10 audio device to the latest SDK R6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4230 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-14 08:39:59 +00:00
Benny Prijono 4b57f582df More #1412: also handle the case for presence subscription, publish, and mwi when the account does not have registration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4229 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-13 09:15:39 +00:00
Benny Prijono c858d74144 Fixed #1569: Option to allow hash character ('#') to appear in user part of SIP URL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4228 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-13 07:26:03 +00:00
Benny Prijono 4394029cd8 More re #1412: set default value of PJSIP_CHECK_VIA_SENT_BY to 0, because now account may send requests with different Via sent-by
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4227 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-13 06:32:55 +00:00
Sauw Ming 6c4248af17 Re #1518: Add support for cross-platform OpenSL audio device (thanks to Regis for the code)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4226 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-10 02:52:34 +00:00
Nanang Izzuddin 9ca1c8cdbe Re #1562: Added compile-time setting to enable/disable "c=" line in SDP session level. The default is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4225 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-09 09:16:31 +00:00
Nanang Izzuddin b2b5f167fb Close #1567: Added option to use STUN2 format for resolving mapped address in pjsua_config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4224 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-09 05:21:25 +00:00
Nanang Izzuddin 6457b15635 Fixed #1566:
- Increased RTP check count from 5 to 50.
 - Immediate stop check when the correct RTP ts span, i.e: using 8khz clockrate, is received.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4223 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-08 12:50:07 +00:00
Sauw Ming 92f430d466 Re #1516: Fixed compatibility problem with configure script on Ubuntu
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4222 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-08 09:06:23 +00:00
Sauw Ming 643d2644d9 Re #1516: Add help info for configure-android, add support for selecting target architecture
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4221 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07 09:06:10 +00:00
Nanang Izzuddin 911260c3cb Fixed #1565: deadlock in DNS resolver.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4220 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07 03:32:34 +00:00
Nanang Izzuddin 37de76e0dc Fixed #1563: Crash when resolving STUN when there is no network connectivity.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4219 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07 02:53:03 +00:00
Benny Prijono c7abc1b598 Fixed #1412: Account specific NAT settings: STUN, ICE, and TURN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4218 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07 02:18:15 +00:00
Nanang Izzuddin 57d68d71b8 Re #1559: fixed uninitialized variable bug in icedemo sample app (thanks Magnus Kempe for the report and the fix!).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4217 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-27 17:24:12 +00:00
Nanang Izzuddin 8c605b01db Re #1562: fixed typo in pjsua app video option help: the default for "--vrender-dev" should be "-2".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4216 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-27 14:00:29 +00:00
Sauw Ming d81fe0e202 Re #1518: Add Android configuration interface and volume capability
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4215 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-26 03:31:55 +00:00
Nanang Izzuddin c47362b29e Close #1561: Added new user credentials lookup callback that also passes 'pjsip_rx_data'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4214 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-25 14:29:28 +00:00
Nanang Izzuddin 5c5220d0c6 Fixed #1560: Added 'timer' in require header in sending 2xx response when session timer refresher is 'uac'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4213 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-23 13:31:26 +00:00
Sauw Ming b4a4719da1 Re #1559: Add doc about on_incoming_subscribe() to call pjsua_pres_notify() immediately after setting the code to 202
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4212 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-19 08:54:35 +00:00
Sauw Ming 8a208a2e0a Re #1516: Add sample config for Android build
Please refer to [http://trac.pjsip.org/repos/wiki/Getting-Started/Android Android Getting Started guide]



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4211 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-19 01:59:38 +00:00
Sauw Ming 1993a7613a Re #1558: Add URI test entry for this case in pjsip test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4210 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-19 01:00:07 +00:00
Sauw Ming 3aa2e6497c Fixed #1558: Bug in parsing quoted URI strings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4209 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-18 10:21:00 +00:00
Sauw Ming 969227ce0c Fixed #1556: Fix From/To tag and Via branch comparison to be case insensitive
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4208 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-18 07:52:33 +00:00
Sauw Ming dfda40baee Fixed #1577: assertion when TURN session is already destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4207 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-17 12:45:39 +00:00
Sauw Ming 14dfc0e48b Fixed #1555 : Bug with via_rewrite feature when the account gets deleted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4206 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-16 02:45:09 +00:00
Benny Prijono 752983a236 Fixed #1554: Assertion in ICE when STUN resolution yields a same address as one of the host candidate and there is only one host candidate exists (thanks Claudio De Angelis for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4205 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-14 12:49:36 +00:00
Benny Prijono 1a90f4948e Fixed #1553: Account setting to disable re-INVITE or UPDATE to lock codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4204 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-13 07:38:06 +00:00
Benny Prijono 6ae8f2d479 Fixed #1552: Possible crash if media transport stop() is called on ICE transport while ICE is not created (thanks Iliya Prince for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4203 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-12 06:39:36 +00:00
Sauw Ming bb258d8203 Re #1516: Add automatic Android API level detection and option to use ndk-build compilation flags
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4202 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-09 09:02:13 +00:00
Benny Prijono 9fefe7a4bf Fixed #1551: Assertion in TURN code when shutdown or destroy is called more than once (thanks Guilherme Balena Versiani for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4201 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-09 08:18:58 +00:00
Nanang Izzuddin 448235b836 Fix #1550: Auto re-registration does not work if application does not set on_transport_state().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4200 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-09 06:01:19 +00:00
Nanang Izzuddin 1e42a67b06 Re: Added compile-time setting PJNATH_STUN_SOFTWARE_NAME to specify SOFTWARE attribute for STUN sessions.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4199 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 10:52:55 +00:00
Nanang Izzuddin 382a57e580 Fix #1549: Always reset conference port mixing buffer when it has transmitter(s).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4198 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 10:25:46 +00:00
Nanang Izzuddin 3bb260a28d Fix #1547:
- Added PJMEDIA_MAX_MRU to specify maximum packet size in receiving direction.
 - Added max_pkt_size into pj_turn_sock_cfg, default is PJ_TURN_MAX_PKT_LEN.
 - Fixed hardcoded MTU settings in media transport SRTP.
 - Added MIN_CHUNKS_PER_FRM constant in video stream.

Notes:
 - PJMEDIA_MAX_MTU & PJMEDIA_MAX_MRU to specify max packet size for TX and RX dir.
 - For ICE media transport, TURN session limits outgoing packet size to PJ_TURN_MAX_PKT_LEN (the size of internal buffer for inserting TURN overheads).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4197 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 07:26:29 +00:00
Benny Prijono 8534076c29 Re #1548: Crash due to racing condition in timer when call is disconnected quickly (thanks Joshua Colp for the report!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4196 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 07:02:50 +00:00
Sauw Ming a2752f8522 Re #1516: add configure-android file
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4195 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-03 08:08:25 +00:00
Sauw Ming c0d971f606 Re #1546: apjsua sample application
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4194 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-03 08:06:43 +00:00
Sauw Ming 932fb81bbc Re #1518: Add support for OpenSL ES audio device
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4193 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-03 07:51:53 +00:00
Sauw Ming 6d3b427f93 Re #1516: Build system for Android
How to use:
 * export ANDROID_NDK=/path_to_android_ndk_dir
 * Run ./configure-android



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4192 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-03 07:46:49 +00:00
Sauw Ming e9915d8380 Changed version to 2.0.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4191 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-03 06:41:46 +00:00
Sauw Ming 2faa365bcb Changed version to 2.0.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4189 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-03 03:11:24 +00:00
Nanang Izzuddin 5a4d6ed11b Re #1523: use random port for PJSUA instance(s) and configurable SIPp port.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4188 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-29 09:01:17 +00:00
Nanang Izzuddin 29e1bc7d75 Re #1523: sipp output redirection to /dev/null somehow caused sipp unresponsive when the test is run under cdash.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4187 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-29 06:41:53 +00:00
Sauw Ming 8a3670f532 Re #1540: Fixed assertion when terminating MWI subscription
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4186 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-29 01:37:50 +00:00
Sauw Ming 7864e42a06 Re #1537: Modify NAT detection to no longer update the transport address.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4185 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-28 14:16:05 +00:00
Nanang Izzuddin 9df151296a Re #1523: avoid false failure reported by sipp scenario uas-422-then-200-bad-se.xml due to codec mismatch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4184 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-28 10:14:48 +00:00
Nanang Izzuddin 7e18022303 Re #1523:
- runall.py: fix option parser
 - run.py: avoid double newlines in logging
 - mod_sipp.py: redirect sipp output to /dev/null & add sipp error string
 - misc fixes on sipp scenarios, e.g: regex to get via branch, file rename.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4183 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-28 09:16:03 +00:00
Sauw Ming b47391ed0a Re #1524: Added call to pjmedia_transport_simulate_lost() for async media transport creation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4182 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-27 07:12:23 +00:00
Sauw Ming e3ea816e10 Re #1537: Fixed bug that does not update via_sent_by upon NAT address update.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4181 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-27 05:00:33 +00:00
Sauw Ming d1ebacaecf Re #1540: Modify MWI subscription setting on run-time
* Add subscription state callback
 * Terminate subscription when deleting acc



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4180 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 09:37:41 +00:00
Nanang Izzuddin b2c6af2d71 Re #1523: fixed mod_sipp.py problems in executing sipp on unix/mac platforms, i.e: should run on shell and non-background mode.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4179 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 07:37:48 +00:00
Nanang Izzuddin 7ccbd91805 Re #1523: added sipp scenario for call transfer (attended & unattended).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4178 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 06:29:53 +00:00
Nanang Izzuddin 3aba980c0e Close #1523:
- updated scenarios to work with mod_sipp.py (adding config .py file, etc)
 - integrated mod_sipp.py to runall.py
 - removed uas.xml, as it is similar to recvfrom\100_simple.py (REGISTER+resp 200)
 - renamed scenarios (to allow running these SIPp scenarios without .py file):
   - prack_fork.xml -> uas-prack_fork.xml
   - inv_401_retry_after_100.xml -> uas-inv_401_retry_after_100.xml




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4177 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 02:28:59 +00:00
Nanang Izzuddin 00584d48c6 Re #1526: r4175 missed PJSUA_UNLOCK() on some failure cases in pjsua_call_answer2().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4176 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-23 03:06:52 +00:00
Nanang Izzuddin 4f83b76a61 Fix #1526:
- Fix incoming call without SDP by delaying media init in on_incoming_call() until call setting is set i.e: via call answer. Note that there is no need to delay the media init in the case of call replace request, the call setting is already set in the incoming call callback, i.e: via on_call_replace_request2() callback or just the current setting of the replaced call.
 - Fix processing call replace request when the media init is performed asynchronously.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4175 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-22 08:53:11 +00:00
Benny Prijono 19b542b363 Fixed #1541: Crash in third party media sample application after library is restarted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4174 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-21 08:09:53 +00:00
Sauw Ming aecc01cc55 Fixed #1537: Via rewrite: putting the right IP address in Via sent-by for outgoing requests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4173 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-20 10:39:05 +00:00
Nanang Izzuddin 866696424a Close #1540:
- added pjsua_acc_config.mwi_expires, also compile-time macro PJSIP_MWI_DEFAULT_EXPIRES
 - updated pjsua_acc_modify() to update MWI subscription when mwi_expires & mwi_enabled of pjsua_acc_config is modified



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4172 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-19 14:35:18 +00:00
Nanang Izzuddin eff0a4c6e5 Fix #1539: Applied non-strict update of remote capability info after receiving the first 2xx response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4171 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-19 13:14:21 +00:00
Benny Prijono 091503029d Fixed #1538: Suppress SIGPIPE for broken TCP connection on Linux (thanks Mike Evans for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4170 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-19 07:40:19 +00:00
Nanang Izzuddin 24582ed725 Re #1535: Added check if module "mod-stateful-util" has been unregistered.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4169 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-18 09:19:58 +00:00
Sauw Ming 665eff076d Re #1536: Revert r4167
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4168 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-18 05:59:08 +00:00
Sauw Ming d1f0b3c11d Fixed #1536: Modify video port creation parameter to be set with actual creation prm on output
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4167 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-15 08:13:43 +00:00
Sauw Ming 461787012b Re #1524: Removed SDL/ffmpeg libraries from ipjsua sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4166 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-15 00:44:41 +00:00
Benny Prijono 514e893c9d Fixed #1535: Pending outgoing TCP transmission may cause crash if the library is shutdown
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4165 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-14 09:04:20 +00:00
Nanang Izzuddin 87f725e09b Close #1534: done.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4164 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-12 08:27:52 +00:00
Benny Prijono 8ddeaa8008 Fixed #1533: Deadlock in processing media transport asynchronous creation completion (thank you Itay Bianco for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4163 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-11 05:15:59 +00:00
Nanang Izzuddin 262dae6074 Re #1532: put back the 'redundant' loop at the beginning.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4162 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-11 04:17:54 +00:00
Nanang Izzuddin fb7bfb9153 Close #1532: optimization in conference bridge get_frame().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4161 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-07 09:28:48 +00:00
Nanang Izzuddin 1fdd4ca22b Fix #1531: fixed memory and handle leak issue in clock thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4160 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-07 04:10:22 +00:00
Sauw Ming 2f91da070f Re #1529: Modify configure script to search for SDL2 first.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4159 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-07 02:24:51 +00:00
Nanang Izzuddin 93a1ae9166 Fix #1528:
- fixed video format YV12 (was YUV planar 16bpp, should be YVU planar 12bpp)
 - added I422 (YUV planar 16bpp, was defined as YV12)
 - updated colorbar video device to support YV12.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4158 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-06 09:56:14 +00:00
Nanang Izzuddin 08b20fe01b Close #1529:
- replaced obsoleted SDL constants SDL_*_OVERLAY
 - updated build config/scripts



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4157 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-06 09:37:25 +00:00
Benny Prijono 96f829e374 Fixed #1530: Sending ACK is reported with wrong pjsip_event info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4156 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-06 07:24:08 +00:00
Benny Prijono 6414d519c8 Re #1527: fixed bug in pjsua-lib, where registration operation may cause wrong timer entry (with _timer_id=0) to be cancelled accidentally. This could happen when turning registration ON after it was off. Thanks Itay Bianco for the report
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4155 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-05 11:49:43 +00:00
Benny Prijono 30154d3fbc Re #1527: added debugging facility to the timer heap. By enabling PJ_TIMER_DEBUG, application can use pj_timer_heap_dump() or pjsip_endpt_dump() to dump the timer entries along with the source location where it is scheduled from. The macro will also enable dumping the timer heap entries when the SIP endpoint is being destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4154 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-05 10:41:17 +00:00
Sauw Ming 3f3c976a4f Creating android branch for initial Android development/porting
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/android@4153 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-05 00:59:54 +00:00
Nanang Izzuddin 94c7ba5ebd Misc (re #1524): Added sipecho to MSVC project 'Samples' (the samples-vc.mak is fine)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4152 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-01 09:18:33 +00:00
Sauw Ming ca29880f95 Re #1521: minor fixes to BB10 dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4151 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-01 04:49:57 +00:00
Sauw Ming 152532f265 Fixed #1521: Add initial support for BlackBerry 10 (BB10) platform.
Please visit http://trac.pjsip.org/repos/wiki/Getting-Started/BB10 for more details on how to build for BB10.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4150 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-01 04:29:56 +00:00
Sauw Ming 4e4ec7e756 Fixed #1525: Modify configure script to disable autodetection when cross-compiling.
This fix disable autodetection for:
 * SDL
 * ffmpeg
 * SSL
 * OpenCORE AMR-NB



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4149 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-01 04:27:01 +00:00
Benny Prijono d098c46a60 Re #1524 (misc fixes): added command line options to specify port and TCP mode for sipecho
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4148 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-31 12:21:59 +00:00
Nanang Izzuddin c5da35f9a5 Re #1523: Initial version of SIPp python test module.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4147 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-31 09:51:08 +00:00
Nanang Izzuddin 2cc31c9a07 Fix #1522:
1. Updated the 'shifter' (expected max openssl reason code) to 1200.
 2. Done, added pj_ssl_sock_info::last_native_err. Also fixed pjsip/sip_transport_tls.c to include TLS transport specific info in invoking transport state callback on disconnection event.
 3. Fixed.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4146 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-30 06:35:59 +00:00
Benny Prijono 5f8798382e Fixed #1515: Sound device is not closed when the call fails to connect (thanks Régis Montoya for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4145 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 23:13:22 +00:00
Benny Prijono 9a60f7b6d8 Changed version to 2.0-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4141 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 11:11:08 +00:00
Benny Prijono 6b9bfb1545 Changed version to 2.0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4139 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 09:52:29 +00:00
Benny Prijono 9577520b4d Re #1508 (Misc): put comment in srtp_optional_dup_offer field to say that the option has been deprecated and will be ignored
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4138 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 09:50:47 +00:00
Benny Prijono 227f730797 Re #1509: backported r4130-4136
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4137 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 09:41:56 +00:00
Benny Prijono 2d966c10ec Re #1514: fixed the incoming call scenario, and changed disconnection code from Precondition Failure to Temporarily Unavailable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4136 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 04:09:53 +00:00
Benny Prijono 03853fe67a Fixed second problem in re #1514: NULL state is reported instead of DISCONNECTED state if call is disconnected due to transport (ICE) initialization error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4135 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 03:33:04 +00:00
Benny Prijono 5fefe8e16b Fixed first problem in #1514: assertion when media transport initialization fail
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4134 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22 03:29:28 +00:00
Benny Prijono fe9bf3079b Fixed #1512: added Option to continue ICE operation even when STUN resolution fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4133 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-21 14:00:17 +00:00
Nanang Izzuddin a485e970e0 Fix #1511: destroy the media transport of the removed media.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4132 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-21 12:39:39 +00:00
Nanang Izzuddin 6898bfded8 Close #1500:
- Added configure options to disable video.
 - Fixed exporting env var PKG_CONFIG_PATH for pkg_config(.py) script (didn't work on MacOS).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4131 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-17 11:23:41 +00:00
Nanang Izzuddin 0663885d34 Re #1509: backported r4122-r4129.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4130 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-17 08:35:51 +00:00
Nanang Izzuddin 48f46a9f37 Misc (re #1508): Fixed warning of unused var in pjsua_app.c when video is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4129 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-17 08:27:46 +00:00
Nanang Izzuddin ac23f00ed3 Close #1506: Added PJSUA callback for SDP creation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4128 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-17 08:14:05 +00:00
Sauw Ming 5776067773 Re #1508 (misc): Fixed incorrect typecast of pjmedia_vid_stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4123 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-14 11:17:31 +00:00
Benny Prijono 6de7667289 Re #1509: backported r4112-4121
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4122 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-14 11:04:46 +00:00
Sauw Ming c8f451b884 Re #1508 (misc): Fixed compilation error if PJMEDIA_STREAM_ENABLE_KA is enabled.
This fix also disable the keep-alive feature in video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4120 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-12 07:18:09 +00:00
Sauw Ming 3c54077dd7 Fixed #1504: Crash when trying to answer calls but call has been disconnected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4118 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-04 02:04:02 +00:00
Nanang Izzuddin b80b9ee69b Fix #1501: Added max incoming framerate state in video stream to check for increasing framerate (before triggering PJMEDIA_EVENT_FMT_CHANGED event).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4115 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-30 02:34:40 +00:00
Benny Prijono cf6b2b7c8a Changed version to 2.0-rc-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4114 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-27 11:58:28 +00:00
Benny Prijono 8ec44afab2 Changed version to 2.0-rc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4112 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-27 09:47:20 +00:00
Benny Prijono b15e7caa0b Re #1474: merged r4100-4107
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4108 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-27 01:32:12 +00:00
Benny Prijono d2360f8143 Misc (re #1446): fixed potentially non-portable 64bit integer literal introduced by r4099
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4106 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 23:47:05 +00:00
Nanang Izzuddin 0155479da1 Fix #1497: reset call->inv to NULL whenever call is terminated prematurely (before completely attached to pjsua).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4102 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 19:03:59 +00:00
Nanang Izzuddin 0d2e9e918e Fix #1496: destroying call media transports in pjsua_media_subsys_destroy() should be done using pjsua_media_channel_deinit().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4101 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 18:41:33 +00:00
Nanang Izzuddin ab34e6bd9b Re #1474: merged r4095:4099
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4100 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 16:57:47 +00:00
Nanang Izzuddin bf56817cbe Misc (re #1446): Fixed compile errors on Symbian S60 5th Ed SDK: unrecognized a struct defined inside another struct and 64 bit integer constants suffix.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4099 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 16:46:27 +00:00
Benny Prijono c94bd20836 Re #1474: merged r4093:4095
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4096 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 11:59:34 +00:00
Benny Prijono 78dbf539b7 Re #1474: merged r4081-r4093
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4094 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 09:31:00 +00:00
Benny Prijono ac58bc0e66 Re #1474: this is supposed to be part of r4082 above, which is the merging of r4054 to r4079. Somehow it was left uncommitted!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4090 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 09:12:25 +00:00
Nanang Izzuddin af8f4fa618 Misc (re #1446): Updated ffmpeg compatibility issues, e.g: av_set_int() return code not match to av_opt_set_int(), update libavcodec version to at least 53.61 for av_opt_set*() usage.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4089 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 07:27:06 +00:00
Nanang Izzuddin 972a42c24f Misc (re #1446): Updated Symbian projects with new files introduced in 2.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4088 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 06:08:24 +00:00
Sauw Ming 2a04460ffe Re #1446 (misc): Disable SDL by default on iOS and fixed various compiler warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4087 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 03:39:24 +00:00
Sauw Ming e85cbee6b9 Re #1446 (misc): Fixed linking error if PJMEDIA_HAS_VIDEO is 0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4086 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 02:44:41 +00:00
Nanang Izzuddin 19dbb90445 Misc (re #1446): dump_media_session() wasn't called if there was no active audio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4085 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-25 07:45:22 +00:00
Sauw Ming 2c488d98e6 Re #1446 (misc): Fix possible crash if video ports are destroyed in the wrong order (i.e. client port must be destroyed last).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4084 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-25 07:13:05 +00:00
Nanang Izzuddin fd7be1a3cf Misc (re #1446): more support newer libavcodec version (major: 54) which deprecated AVCodec::encode and avcodec_encode_video().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4083 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-25 05:12:55 +00:00
Benny Prijono 5fa18e65d1 Re #1474: merged r4054-r4079
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4082 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 13:09:14 +00:00
Benny Prijono 5f166fd312 Misc (re #1446): support newer libavcodec version (major: 54) which deprecated few APIs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4081 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 13:06:39 +00:00
Nanang Izzuddin 21b2450e8b Re #1276: Updated baseclasses dependency in VC makefile for samples.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4080 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 12:45:00 +00:00
Benny Prijono 2f3cc8ed32 Misc (re #1446): fixed warning re unused job_thread() function in Mac OS build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4078 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 09:46:39 +00:00
Benny Prijono 20c157e524 Misc (re #1446) fixed compilation warning
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4077 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 09:43:06 +00:00
Benny Prijono f92386df96 Misc (re #1446): compilation warning when calling swscale
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4076 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 09:40:35 +00:00
Nanang Izzuddin a24437843a Re #1276: Fixed missing setting in baseclasses project also added svn:ignore prop to baseclasses output dir.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4075 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 08:11:31 +00:00
Nanang Izzuddin 6e2b2f006c Re #1276: Removed unused file baseclasses.vcproj
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4073 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 07:14:55 +00:00
Nanang Izzuddin c46d115c2b Re #1276:
- Updated baseclasses VS2005 project setting (use VS property sheet, etc).
 - Added PJMEDIA_VIDEO_DEV_HAS_DSHOW filter.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4072 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 07:07:39 +00:00
Nanang Izzuddin 1d56872ad7 Fix #1423:
- Added provisional media in call for generating initial and subsequent SDP offer/answer. If a reoffer is rejected by peer, the main call media will remain unchanged and the provisional media will be cleaned up (the cleanup is currently delayed until call gets destroyed or another reoffer/answer occurs).
 - Reenabled media transport dump in pjsua_core.c.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4071 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24 05:40:32 +00:00
Benny Prijono 8e0a5fc768 Related to re #1469: enable H.263 and H.264 by default if ffmpeg is available
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4070 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-23 13:48:10 +00:00
Benny Prijono eeebfabbf7 Re #1469: Changed aconfigure to use pkg-config to detect ffmpeg dependencies. On systems where pkg-config is not available (such as Mac OS X), use the supplemented pkgconfig.py Python script. If Python is not available, users then need to configure CFLAGS and LDFLAGS manually prior to running configure
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4069 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-23 13:46:21 +00:00
Sauw Ming db7e0602c1 Fixed #1493: Fixed bug in terminating the invite session when accepting incoming call.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4068 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-23 13:27:29 +00:00
Sauw Ming 75b42f984e Re #1276: Integrate BaseClasses with the project and remove unnecessary classes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4062 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-19 06:36:57 +00:00
Sauw Ming 93ba7fef09 Fixed #1276: Add baseclasses sample in third_party directory required by dshow_dev
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4061 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-18 02:38:42 +00:00
Sauw Ming c1a64cbb33 Re #1355: vidgui: new rendering window may cause all rendering processes to stop
Despite this fix, there is still a possibility that the rendering window can occasionally get stuck because SDL_PollEvent() gets stuck. This is most likely because there are two unsynchronized event pollers, Qt and SDL. The problem only happened on Windows with SDL 1.3 r5538, runs fine on Mac.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4060 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-17 09:55:30 +00:00
Benny Prijono 1593c8769a Re #1476: for simple blocking, the bandwidth typically needs to be set to larger value than the avg_bitrage, otherwise the simple_blocking will slow down the transmission too much, causing video and audio unsync. This patch force the bandwidth to at least three times avg_bps
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4059 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-17 07:18:52 +00:00
Benny Prijono d7d94c4f6b Related to re #1478: minor fix for wrong AVI header field name (msec instead of usec)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4058 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-17 06:57:50 +00:00
Benny Prijono db86127fe5 Related to re #1478: add timestamp value to audio and video frames in the AVI player, and fix the avg/max bps calculation for the port info of audio stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4057 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-17 06:54:50 +00:00
Nanang Izzuddin 9f44201821 Misc (re #1446): redirect ffmpeg logging with custom log callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4056 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-17 02:48:29 +00:00
Nanang Izzuddin b230a22ffb Re #1441: applied window flags BORDER and RESIZABLE to the local preview when sending AVI.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4055 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-16 09:44:25 +00:00
Benny Prijono 1effeaa6c3 Re #1474: merged r4042-r4053
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4054 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-16 07:50:01 +00:00
Sauw Ming 11c501a1db Re #1446 (misc): Revert r4035 which resizes renderer if format does not change.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4053 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-16 05:22:18 +00:00
Sauw Ming 32befd7703 Re #1446 (misc): Fixed unset sip error code if pjsip_inv_verify_request3() failed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4052 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-16 02:47:38 +00:00
Sauw Ming 1f07888ea3 Re #1446 (misc): Change the default of PJMEDIA_HAS_FFMPEG_VID_CODEC to PJMEDIA_HAS_FFMPEG_CODEC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4051 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-13 08:16:30 +00:00
Sauw Ming 3049d7eaae Re #1446 (misc): Modified Makefile for ffmpeg_vid_codecs (see r4049)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4050 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-13 06:29:56 +00:00
Sauw Ming 74283db5f4 Re #1446 (misc): Modified ffmpeg_codecs to ffmpeg_vid_codecs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4049 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-13 06:24:23 +00:00
Nanang Izzuddin f34c6bdc40 Misc (re #1446): added AVI tags 'FMP4' & 'DX50' for MPEG4 variants in AVI player.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4048 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-13 05:45:25 +00:00
Sauw Ming 451f05f6d8 Re #1478: Moved codec creation from dev_stream to dev_info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4047 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-13 04:59:05 +00:00
Nanang Izzuddin 1fcae4934e Misc (Re #1446): Remove XVID format usage in ffmpeg_util.c, PJMEDIA_FORMAT_XVID definition was removed in r4017 (thanks Bob van der Linden for the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4044 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-13 02:26:11 +00:00
Nanang Izzuddin 73f35850c0 Re #1476: Initial version of send rate control in video stream, added simple blocking method (block application thread to make send delay when delay is needed).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4043 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-12 13:41:50 +00:00
Nanang Izzuddin c838f28acb Re #1474: merged r4041
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4042 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-12 08:53:59 +00:00
Nanang Izzuddin cd2bfbacd3 Re #1474: merged r4039
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4040 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-12 08:10:06 +00:00
Benny Prijono 3abc757586 Re #1474: merged r4031-r4037
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4038 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-11 10:01:00 +00:00
Sauw Ming 3af76f4db5 Re #1446 (misc): Create SDL window in the requested position if PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION is specified (fixed unused vars in the prev revision).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4036 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-10 12:27:25 +00:00
Sauw Ming 555600ac95 Re #1446 (misc): Modify SDL dev to:
* Resize renderer (instead of recreating it) if format does not change.
 * Create window in the requested position if PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION is specified.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4035 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-10 12:23:35 +00:00
Sauw Ming 5a3f9f57ba Re #1478: Add support to play encoded AVI file (H264 or MPEG4).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4034 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-10 11:54:04 +00:00
Nanang Izzuddin ad5e8143eb Re #1474: merged r4030
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4031 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-09 07:15:45 +00:00
Sauw Ming ee13fb4171 Re #1472: Fixed wrong calculation in clock rate adjustment
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4029 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 08:53:48 +00:00
Nanang Izzuddin 03f7c10e35 Misc (Re #1446): limit pjsua_vid_codec_get/set_param() search domain to only codecs with RTP packetizations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4028 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 08:41:20 +00:00
Nanang Izzuddin 4560ee8d43 Misc (Re #1446): Add pjsua app video command for modifying video codec size/resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4027 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 08:38:49 +00:00
Sauw Ming 31cc40d501 Re #1472: Adjust the clock's get_frame() rate if the video device is passive
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4026 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 08:38:27 +00:00
Nanang Izzuddin 8f1546d478 Misc (Re #1446): Add pjsua app video commands for modifying video codec bitrate & framerate.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4025 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 07:22:30 +00:00
Nanang Izzuddin 5ec95cd900 More re #1478: AVI cleanup steps in pjsua app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4024 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 04:41:24 +00:00
Sauw Ming 22d9b64287 Misc (Re #1446): Fixed wrong setting of pjsua_app's options.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4023 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 01:56:05 +00:00
Nanang Izzuddin 5f13c9fe06 Misc (Re #1446): fixed TX packet counter in video stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4022 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 10:55:18 +00:00
Nanang Izzuddin d96208a6d4 More re #1478: fixed build config and compile warnings on MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4021 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 10:07:18 +00:00
Benny Prijono 83ee8f5371 More re #1478: now really do not connect to microphone when streaming avi (instead of disconnecting the whole audio)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4020 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 08:16:02 +00:00
Benny Prijono 837200acb4 More re #1478: do not connect the microphone when streaming avi
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4019 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 07:45:39 +00:00
Sauw Ming 878bc14d00 Misc (Re #1446): Add support for aviplay to play H264 and MPEG4 decoded AVI videos. This includes support for XVID and DIVX MPEG4.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4018 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 05:45:46 +00:00
Sauw Ming 9597b009c4 Misc (Re #1446): Remove XVID format and add default resolution and fps for MPEG4 and MJPEG
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4017 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 05:39:50 +00:00
Benny Prijono 2e727e8f70 Fixed #1478: AVI player virtual device. Initial spec:
- Currently only Works with raw video and audio AVI files
 - Added --play-avi and --auto-play-avi options in pjsua
 - No A/V synchronization yet


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4016 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 05:05:50 +00:00
Benny Prijono ce8ff439ee Misc (Re #1446): changed h.263 and h.264 default maximum bandwidth to 256kb/s from 512kb/s
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4015 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 04:49:15 +00:00
Benny Prijono 27e6147e9e Re #1446: set format to PCM when WAVE_FMT_TAG_PCM is detected in AVI file, so that other pjmedia components can recognize that it is a raw PCM format
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4014 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 04:45:28 +00:00
Benny Prijono 73ed000001 Misc (re #1446): fixed crash if unregistered format is specified when opening device with the video port
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4013 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 04:43:05 +00:00
Nanang Izzuddin 2ec3222cb5 Close #1479: Applied RTCP related enhancements (#1268 & #1440) into video stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4012 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-03 10:10:11 +00:00
Nanang Izzuddin 1dc6d21fb7 Misc (re #1446): fixed log message in pjsua_media_channel_update() for pjsua_vid_channel_update() failure.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4011 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-03 08:02:12 +00:00
Nanang Izzuddin 8189933e4e Misc (re #1446): Reenable format change event emission in video stream when remote frame rate changed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4010 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-03 07:47:55 +00:00
Sauw Ming a81690efaf Misc (re #1446):
* Apply format change event to vid_dev only if the format changes.
 * Get the new format info from the event itself (instead of from the client port)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4009 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-03 07:33:31 +00:00
Nanang Izzuddin 906e94a061 Re #1453: fixed memory leak in pjmedia_vid_codec_mgr_set_default_param() caused by unreleased old pool when the new codec param is not NULL (thanks Faba Aa for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4008 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-03 04:03:19 +00:00
Nanang Izzuddin 9f056b6a90 Misc (re #1446): Updated default video frame rate from 30 fps to 15 fps (for both H264 & H263-1998).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4007 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-02 09:30:50 +00:00
Nanang Izzuddin b865b140af Misc (re #1446): Added macro PJMEDIA_MAX_VID_PAYLOAD_SIZE, also updated the default encoding MTU of ffmpeg codec & H263/H264 packetizers to this macro setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4006 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-02 08:40:54 +00:00
Benny Prijono 161e6918dd Re #1446: removed the obsolete but misleading sip_transport_tls_ossl.c file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4005 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-02 08:33:06 +00:00
Nanang Izzuddin bdf6d1e219 Fix #1475: Fixed wrong frame size calculation used for jitter buffer initialization in video stream, it should be based on PJMEDIA_MAX_MTU instead of encoder MTU setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4003 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 08:55:18 +00:00
Benny Prijono 7d25aa60ed Re #1474: merged r3879
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4002 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 08:05:43 +00:00
Benny Prijono 79fdc88867 Re #1474: merged r3879:3885
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4001 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:53:36 +00:00
Nanang Izzuddin a62931906b Misc (re #1446): Fixed compile warnings on VS2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4000 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:41:56 +00:00
Benny Prijono 28d3c56283 Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Nanang Izzuddin fb28b6a7ac Misc (re #1446): Avoid unnecessary high latency caused by clock drift or call setup lag by overriding initial framerate setting to be 1.5x higher in video stream decoding direction. Note that a previous method in r3972 has just been cancelled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3998 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 06:46:48 +00:00
Sauw Ming 79d54d22a1 Re #1446 (misc fix): Add more robust checking and logs for SDL job queue creation/destruction.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3997 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 06:46:19 +00:00
Sauw Ming 4f82c4d8b3 Re #1446 (misc fix): Fix call info to display correct invite state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3996 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 06:18:50 +00:00
Nanang Izzuddin ca9c3fd533 Fix #1473: Fixed H263 encoder setting negotiation in pjmedia_vid_codec_h263_apply_fmtp() to be based on pjmedia_vid_codec_param.enc_fmt.det.vid.fps (it was based on local H263 SDP fmtp).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3995 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-29 10:54:01 +00:00
Benny Prijono 4997ba6dfe Fixed wrong use of CC variable in Makefile (re #1463)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3994 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-29 09:25:52 +00:00
Sauw Ming 4a8e5f6b9b Re #1472: Fixed assertion if stream role is passive
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3993 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-29 08:46:26 +00:00
Sauw Ming 7afdd3a7c7 Fixed #1472: Modify video port to create its own clock instead of using the device's clock
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3992 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-29 08:22:35 +00:00
Benny Prijono b8dfe8969b Misc (re #1446): prevent on_call_state() callback from being called before on_incoming_call() callback is called
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3990 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-28 09:05:34 +00:00
Nanang Izzuddin 2565aec098 Re #1463 (3rd party media support): fixed VS2005 project setting for newly added files (pjmedia/stream_info.c, pjmedia/vid_stream_info.c, pjsua-lib/pjsua_aud.c).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3985 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-22 11:26:59 +00:00
Benny Prijono 56a1a137ae Re #1463 (3rd party media support): fixed the top most Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3984 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-22 11:15:59 +00:00
Benny Prijono 464182ee40 Re #1463 (3rd party media stack support): added the sample app in pjsip-apps/src/3rdparty_media_sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3983 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-22 10:03:33 +00:00
Benny Prijono 1312e75c9e Re: #1463 (Third party media support). Tnitial work and it works, tested on Linux. Details:
* add PJSUA_MEDIA_HAS_PJMEDIA macro
 * move pjmedia specific implementation in pjsua_media.c and pjsua_call.c into pjsua_aud.c
 * add pjsip-apps/src/third_party_media sample containing:
    - alt_pjsua_aud.c
    - alt_pjsua_vid.c
 * moved pjmedia_vid_stream_info_from_sdp() into pjmedia/vid_stream_info.c
 * moved pjmedia_stream_info_from_sdp() into pjmedia/stream_info.c
 * misc: fixed mips_test.c if codecs are disabled



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3982 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-22 09:56:52 +00:00
Nanang Izzuddin c1a8073686 Re #1467: fix sound device (opened/closed) status check in check_snd_dev_idle(), especially when sound device is managed by app (no_snd = PJ_TRUE). Note that pjsua_media_subsys_destroy() always close the sound device first, so check_snd_dev_idle() in pjsua_destroy() sequence should have been just a no-operation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3981 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-22 03:29:56 +00:00
Sauw Ming fa62eb160e Re #1428: Fix returning the correct error status when there is no active media.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3980 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-20 09:23:20 +00:00
Sauw Ming c1f9b55d87 Re #1446 (misc fix): Fixed typo in default clock rate for iOS and QT video dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3979 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-20 08:55:33 +00:00
Nanang Izzuddin e0de37f961 Misc (re #1446): Re-enable remote video frame-rate detection in vid_stream.c. Note that currently such remote frame-rate update will not trigger format changed event.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3975 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-14 12:36:42 +00:00
Nanang Izzuddin 3d054981d3 Misc (re #1446): Updated ffmpeg video codecs default params:
- decoder fps to be 1.5x faster than encoder's, to encounter accumulated frames in jbuf when decoder clock gets short pauses in video setup (e.g: renderer creation, format change)
 - separate size & fps for H.264 and H.263



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3972 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-09 03:29:05 +00:00
Nanang Izzuddin 84e0018670 Misc (re #1446): Minor fixes arrange_window() in pjsua app:
- calculate visible windows only (with 2 calls, there was already an out-of-screen window)
 - re-arrange windows on format changed event



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3971 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-09 03:03:10 +00:00
Sauw Ming 6709be60a4 Fixed #1461: pjsua_call_make_call: assertion failure when rapidly making calls
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3966 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-07 03:09:33 +00:00
Nanang Izzuddin 6afaa867c7 Fix #1459: returned back the old/1.x way of controlling dialog lifetime in pjsua_call_make_call().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3965 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-06 07:39:04 +00:00
Nanang Izzuddin 641d087334 Fix #1453:
- Add and manage pool instance in default codec param in video codec framework.
 - API change: pool param is removed from pjmedia_vid_codec_mgr_set_default_param().




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3956 74dad513-b988-da41-8d7b-12977e46ad98
2012-02-21 08:31:26 +00:00
Nanang Izzuddin a56a927df5 Re #1244: Added bitrate adjustment for video encoder based on remote SDP "b=TIAS" line in media level.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3955 74dad513-b988-da41-8d7b-12977e46ad98
2012-02-20 03:30:54 +00:00
Sauw Ming 8ad9e7fa84 Re 1446#: Fix division by zero error caused by DShow if video device does not supply AvgTimePerFrame information (AvgTimePerFrame=0).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3953 74dad513-b988-da41-8d7b-12977e46ad98
2012-02-16 08:49:33 +00:00
Sauw Ming 85565c104f Closed #1450: Add support for SDL job queue to grow in size.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3950 74dad513-b988-da41-8d7b-12977e46ad98
2012-02-06 08:27:28 +00:00
Sauw Ming ad2eec82f2 Re #1446 (misc fix): Fix crash problem due to uninitialized list when SDL creation failed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3949 74dad513-b988-da41-8d7b-12977e46ad98
2012-02-03 07:56:12 +00:00
Benny Prijono 2aa3bcb9e5 Updated PortAudio SVN URL (re #1446/Misc)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3948 74dad513-b988-da41-8d7b-12977e46ad98
2012-02-03 07:06:01 +00:00
Nanang Izzuddin 2f29635315 Re #1244: Added bandwidth info in SDP ("b=" lines) based on codec bitrate settings. Two SDP bandwidth types/modifiers are used: AS in session level & TIAS in media level.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3945 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-27 09:12:59 +00:00
Nanang Izzuddin 8cbc8a5a99 Fix #1444: always connect video capture port to video tee, even when the capture port has native preview, as a capture port can be used simultaneously by multiple streams (not only used by non-native preview renderer).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3940 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-11 05:30:55 +00:00
Nanang Izzuddin 54176c4cec Fix #1443: put destroy method to opencore-amr codec factory op.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3939 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-10 05:38:40 +00:00
Sauw Ming 2a89923ccf Fixes #1442: Unable to make call if disabled media is included
Add an API pjsua_schedule_timer2() to allow application to schedule a callback function to be executed after a specified time interval. This enables app to post a delayed job which, in this case, allows the initialization of all media transport creations to finish first before we get the media transport creations result.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3938 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-09 11:51:56 +00:00
Nanang Izzuddin a8c620693e Re #1441 (vid_streamutil): applied window flags BORDER and RESIZABLE to the incoming video window.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3937 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-06 11:30:40 +00:00
Nanang Izzuddin 9a294e74ab Re #1441 (vid_streamutil): only apply the decoding format size (DEF_RENDERER_WIDTH/HEIGHT macro setting) if it is larger than the default.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3936 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-06 11:28:19 +00:00
Nanang Izzuddin 8e59da0ae7 Re #1441 (vid_streamutil): fixed assertion of uninitialized event manager.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3935 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-06 11:22:31 +00:00
Sauw Ming 6f888b9fc2 Fixed #1438: CoInitializeEx by application prevents dshow device from working
Return error if application already initialized COM library with a different concurrency model than what dshow_dev needs.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3934 74dad513-b988-da41-8d7b-12977e46ad98
2012-01-04 02:39:13 +00:00
Nanang Izzuddin 75d34e125b Changed version to 2.0-beta-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3933 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-29 05:18:39 +00:00
Nanang Izzuddin 77b532da01 Changed version to 2.0-beta
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3931 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-29 03:17:51 +00:00
Nanang Izzuddin 5bfb16916f Misc (re #1393): vidgui: fixed zombie video window after re-INVITE by always destroying any incoming video window first before processing media update.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3930 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-28 10:23:58 +00:00
Nanang Izzuddin 1c565420bf Fix #1433: synchronuous ICE initialization calls PJSUA_UNLOCK() only when the PJSUA lock is actually held by this thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3929 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-28 09:52:07 +00:00
Nanang Izzuddin 53966c0bc2 Close #1434: Added PJSUA_LOCK_IS_LOCKED().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3928 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-28 09:49:24 +00:00
Benny Prijono 36d324914e re #1393: error in detecting libavformat in mac os if ffmpeg was built and libbzip2-dev is installed. This caused ffmpeg to be built with dependency to libbz2, while our configure does not, causing link error during libavformat detection. This is temporarily fixed by adding libbz2 detection in aconfigure.ac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3927 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-28 08:42:23 +00:00
Benny Prijono b1386036c1 Re #1393: added checkbox to enable/disable video in vidgui sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3926 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-27 12:50:17 +00:00
Benny Prijono ae86e6ad00 More re #1419: changed field names from video_count to vid_cnt and audio_cnt to aud_cnt for better consistency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3925 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-27 12:47:52 +00:00
Benny Prijono 5c4aa8e6db Misc (re #1393): vidgui: added account and NAT support and fixed assertion on incoming call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3923 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-26 09:03:13 +00:00
Benny Prijono 0a05689596 Re #1393 (misc): reduced default ffmpeg h264 bandwidth from 512 to 256kbps
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3922 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-26 09:01:47 +00:00
Benny Prijono 0ec6cfbb9b Re #1393 (misc): renamed label on_error to on_return and fixed warning re constness
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3921 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-26 09:00:42 +00:00
Benny Prijono 1787c1c1c5 Re #1234: increase default interval between two INFOs from 500 to 3000 ms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3920 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-26 08:57:05 +00:00
Sauw Ming 9c2de5c758 Re #1430: Fixed crash when STUN & ICE is off
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3919 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-23 03:07:33 +00:00
Sauw Ming 9d3021ff18 Fixed #1430: Crash when dialog is prematurely destroyed during outgoing call.
We do this by temporarily incrementing dialog session until the invite session is created.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3918 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-20 10:27:39 +00:00
Nanang Izzuddin ca15267c51 Misc (re #1393): fix bitrate calculation in stream.c and wav_playlist.c.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3917 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-20 10:01:35 +00:00
Nanang Izzuddin 0c2aab7168 Fix #1425:
- Updating port info of the switchboard master port (after reopening audio device) with the audio device param should care about PJMEDIA_AUD_DEV_CAP_EXT_FORMAT flag, i.e: only copy from audio device extended format info when the flag is set.
 - Fixed switchboard to update the master port info shortcut in connecting ports, as master port info may get updated to match to the connecting ports.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3915 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-20 09:52:19 +00:00
Sauw Ming 9518d2f1fc Fixed #1429: Problem with SDL on setting window's position when window is hidden
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3914 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-19 06:16:34 +00:00
Nanang Izzuddin 393edda96c Fix #1427: added check if video_cnt in call option should be increased while trying to enable a video stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3912 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-15 10:11:51 +00:00
Nanang Izzuddin 9a71d8e7c4 Close #1279: Implemented custom SDP format match for G.722.1 and AMR-NB/WB.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3911 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-15 06:45:23 +00:00
Nanang Izzuddin e857f41959 Misc (re #1393): fix compile error in pjmedia-codec/audio_codecs.c, caused by typo and wrong member reference: '&c->passthough.ilbc' should be '&c->passthrough.setting'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3910 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-15 06:34:25 +00:00
Nanang Izzuddin 5be47c781a Misc (re #1393): fix compile error in pjsua_media.c (undefined member 'bitrate' in struct 'pjmedia_format') when using passthrough codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3909 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-15 06:27:07 +00:00
Nanang Izzuddin 4506dd6fd0 Close #1424: Added new pjsua callback: on_call_rx_offer().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3908 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-13 04:59:15 +00:00
Sauw Ming 7a9b75614e Re #1420: Create a pool for the event manager so subscriber doesn't need to supply its own pool.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3905 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-09 05:15:39 +00:00
Nanang Izzuddin 1e4cf6936e Re #1234: minor update, put libavcodec version check for constant AV_PICTURE_TYPE_I/FF_I_TYPE usage.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3904 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-08 10:27:38 +00:00
Nanang Izzuddin 0409a3db7e Re #1419: updated call transfer to allow both the transferee and the transfer destination to update the current call setting:
- for transferee (attended & unattended): via new PJSUA-LIB callback on_call_transfer_request2()
 - for transfer destination (attended only): via new PJSUA-LIB callback on_call_replace_request2()




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3903 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-08 08:18:02 +00:00
Sauw Ming 0616717d39 Re #1420: Removed old event publication init in QT and iOS dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3902 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-08 01:32:04 +00:00
Nanang Izzuddin 3da4ad8f85 Re #1234: Initial version of keyframe request/response via SIP INFO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3901 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-07 10:43:28 +00:00
Sauw Ming 69a9ba315a Re #1420: Releases the mutex before invoking the callback from the worker thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3899 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-07 04:19:28 +00:00
Sauw Ming b4abd3e1a6 Re #1420: Fixed event source information in pjmedia vid_stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3898 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-05 07:16:21 +00:00
Sauw Ming 71f5a92618 Re #1420: Fixed event propagation from video stream to video port.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3897 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-05 05:50:52 +00:00
Benny Prijono d29724f1a0 Re #1420: event change for V4L2 device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3895 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-02 09:30:04 +00:00
Benny Prijono 7347f31251 Minor (re #1393): fixed compilation warning in pjsua app if video is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3894 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-02 09:26:44 +00:00
Sauw Ming 0fabe1bbb6 Closed #1420: Add support for event manager
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3893 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 10:49:07 +00:00
Nanang Izzuddin 3d7385c7f9 Misc (re #1393): fix linking error "app_config_init_video() not found" when video is disabled, also some compile warnings (unused variables).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3892 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 10:02:54 +00:00
Nanang Izzuddin debd48ae0b Re #1419, implement media count manipulation per call basis:
- moved the media count setting from account setting to call setting
 - introduced pjsua_call_setting, to be used by pjsua_call_make_call() and some new APIs: pjsua_call_answer2(), pjsua_call_reinvite2(), pjsua_call_update2() 




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3891 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 09:06:14 +00:00
Benny Prijono 678c02c7a4 Fixed problem with selecting audio codec if rtpmap is omitted from the SDP for the static PT (re #1393, thanks Régis Montoya for the fix!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3890 74dad513-b988-da41-8d7b-12977e46ad98
2011-11-30 09:34:33 +00:00
Benny Prijono 58366a0985 Missing video component deinitialization caused assertion when the stack is restarted. Thanks Régis Montoya for the report (re #1393)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3887 74dad513-b988-da41-8d7b-12977e46ad98
2011-11-17 14:25:26 +00:00
Sauw Ming 7e4feae4b3 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3833:r3877



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3878 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-31 10:31:23 +00:00
Benny Prijono 2780b7aa79 Misc (re #1393): write log if adding pjsua buddy fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3875 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-28 05:09:53 +00:00
Benny Prijono dc43afedb0 Misc (re #1393): disable jbuf tracing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3874 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-28 05:08:54 +00:00
Benny Prijono cb69f8dece Fixed #1406: Add info about ICE candidates being used in transport info and pjsua's call dump output
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3872 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-28 04:27:41 +00:00
Benny Prijono 20eb7277ca Misc (re #13930; added info about ICE candidates being used (both local and remote) in pjsua dump call output
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3870 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-28 04:10:00 +00:00
Nanang Izzuddin d5c6825759 Close #1404: handle static payload types match in pjmedia_sdp_neg_fmt_match().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3869 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-27 15:33:31 +00:00
Benny Prijono f9ea1a0d35 Re #1393 (misc): remove unnecessary call to start preview renderer in video update
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3866 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-27 07:11:37 +00:00
Nanang Izzuddin cfa312c830 Close #1403: Fixed pjsua-lib in generating re-offer when the current session contains (disabled) unknown media types.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3865 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 16:57:05 +00:00
Sauw Ming 0ee072f2e3 Fixed #1401: Add support for video device's window flags
Now support flags PJMEDIA_VID_DEV_WND_BORDER and PJMEDIA_VID_DEV_WND_RESIZABLE.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3864 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 09:01:53 +00:00
Benny Prijono 4bc1575ed3 Added video for TCP account (previous fix did not work, re #1400)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3863 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 08:03:41 +00:00
Benny Prijono 0d6f755bbb Added missing video initialization to TCP local accounts in pjsua (fixed #1400)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3862 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 08:00:28 +00:00
Nanang Izzuddin f9547787da Re #1390: Updated h264 settings: bitrate from 128k to 512k, size from 352x288 to 720x480, x264 preset from 'veryslow' to 'veryfast'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3861 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 06:56:51 +00:00
Benny Prijono 7eff5ef941 Fixed #1402: crash when adding new media
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3860 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 06:53:30 +00:00
Benny Prijono e110523801 More H.264 (re #1390): added x264 in aconfigure
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3859 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 06:49:34 +00:00
Benny Prijono db5d89dd63 Fixed call_med->rtp_addr is not initialized causing UPDATE to be sent after every ICE negotiation (misc re #1392)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3858 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 13:39:06 +00:00
Nanang Izzuddin 46977e7dd9 Misc (re #1393): cosmetic in call dump, missing '=' char in avg bitrate in TX :)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3857 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 13:17:19 +00:00
Nanang Izzuddin acc3181cb5 Re #1300: Bug in updating SDP rtpmap in symmetric PT when PT offer is shorter than our default, the rtpmap value length was not updated.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3856 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 12:44:24 +00:00
Nanang Izzuddin 452eba0258 Re #1394: Ignore thread join if called from the same thread, it will cause the thread blocks forever.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3855 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 12:14:12 +00:00
Benny Prijono f487ccfbac More re #1394: handle the case when clock_stop() is called from within the clock callback itself
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3854 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 12:12:44 +00:00
Nanang Izzuddin 431c60319c Re #1390: disable H264 encoder source format RGB24 as x264 doesn't support 4:4:4 for baseline profile.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3853 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:13:53 +00:00
Benny Prijono 7718350c7b Misc (re #1393): crash in vid win command without argument
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3852 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:12:33 +00:00
Nanang Izzuddin 034ac4199f Re #1400: init video settings for pjsua app accounts.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3851 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:11:04 +00:00
Benny Prijono d3de2a8d6f Re #1400: enhancements to video operations in pjsua application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3850 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 09:35:11 +00:00
Sauw Ming c8e1294615 Fixed #1398: TURN initialization failure scenario
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3849 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 08:51:02 +00:00
Benny Prijono 12ceac876f Minor (#1393): compilation warning with snprintf format
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3848 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 04:39:59 +00:00
Benny Prijono 6970f7cbb0 More #1394: fixed deadlock when format change is reported by vid_stream, which cause the clock to stop. It waits for the callback to return, but the callback is waiting to lock the jb_mutex, which is currently being held by the stopping clock. The workaround is to queue the event and report it later
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3847 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 04:36:46 +00:00
Benny Prijono 0269c8e42f Fixed #1399: Assertion failure if unable to resolve TURN server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3844 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 15:03:43 +00:00
Benny Prijono 2761067eae Fixed #1389: Failed to authenticate to TURN client due to REALM attribute padding
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3843 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 14:13:35 +00:00
Benny Prijono 9fc7f1f1ce Re #1300: fixed bug when looking for non-telephone-events codec in the incoming INVITE causing it to rejects with 488
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3842 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 13:31:35 +00:00
Sauw Ming e7dbbc8f30 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3557:r3832

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 09:28:13 +00:00
Benny Prijono 3f0ff80097 Fixed #1394: Concurrency problem when stopping clock thread
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3840 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 08:49:42 +00:00
Benny Prijono abdb5ed75f Misc (re #1393): fixed wrong libavutil version detection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3839 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 06:50:34 +00:00
Nanang Izzuddin 9606a52056 Misc (re #1393): Put log warning in ffmpeg codecs when a codec is enabled but cannot be found in ffmpeg library.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3838 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 03:59:58 +00:00
Nanang Izzuddin 16653df172 Re #1300: Implemented symmetric payload type in generating SDP answer in SDP negotiator.
This should work for all codecs, audio & video. Can be disabled at compile-time
using PJMEDIA_SDP_NEG_REWRITE_ANSWER_PT macro setting.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3837 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-23 06:59:48 +00:00
Benny Prijono 697456efd8 Misc (re #1393): increase default H.263 bandwidth
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3836 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-23 05:25:50 +00:00
Benny Prijono 025263db25 Fixed #1392: Immediately decode incoming frames to avoid loosing key frames when the jbuf is full and improve latency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3835 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-23 05:23:55 +00:00
Nanang Izzuddin 3c416987a3 Re #1390: Fixed ffmpeg codecs to update size & fps in AVCodecContext after applying SDP fmtp to codec param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3833 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-21 01:36:02 +00:00
Benny Prijono 6a0a49a532 Added libz in aconfigure as this is needed by newer ffmpeg (re #1390)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3827 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 11:17:23 +00:00
Benny Prijono 565c52e6f0 Fixed compilation error in pjsua_app introduced by r3819 if video is not enabled (re #1390)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3825 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 06:51:34 +00:00
Benny Prijono a165e93a86 Compile error with older ffmpeg due to H.264 modification (re #1390)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3824 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 06:46:49 +00:00
Nanang Izzuddin f6140b3f16 Re #1390: Fixed possible compile error in ffmpeg_util.c, the new ffmpeg format PIX_FMT_GBR24P is only available in libavutil 51.20.1 onward.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3823 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 05:17:13 +00:00
Nanang Izzuddin 65b04a692c Reenable ffmpeg H264 (re #1390):
- Review H264 codec settings such as profile, level, NAL unit size, bitrate, quality, latency.
 - Added new format PJMEDIA_FORMAT_GBRP, 24 bits planar RGB, one of the formats outputted by the latest ffmpeg H264 decoder.
 - Fixed format change detection bug in ffmpeg wrapper, decoder didn't update its internal state with the new format so format change event was generated in every decoding operation.
 - Added compile time configurations for enabling/disabling ffmpeg codec H263+ & H264.
 - Updated pjsua app to adjust window size to original video size. With H264, default window size will be too big as it is init'd with default H264 video size, e.g: 720x480 for profile level 30.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3819 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 01:51:01 +00:00
Benny Prijono e19748990f Changed version to 2.0-alpha2-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3808 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-10 07:32:30 +00:00
Benny Prijono e1c94ca738 Changed version to 2.0-alpha2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3806 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-10 06:10:39 +00:00
Benny Prijono aa46ce0b95 Set default H.263 bandwidth to 128Kbps instead of 1Mbps (re #1370)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3805 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-10 06:02:02 +00:00
Sauw Ming cec804e263 Closed #1382: Handle flipped image in dshow
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3803 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-07 05:41:37 +00:00
Benny Prijono 764f873247 Misc (re #1370): limit the number of error messages caused by error in send_rtp()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3802 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 09:13:27 +00:00
Nanang Izzuddin b6714d6218 Misc (re #1370): disable H263 codec for RTP communication (was enabled to test whether it can use H263-1998 packetization).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3801 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 08:13:01 +00:00
Benny Prijono d865de92d6 Misc (re #1370): pjsua hide preview window when setting preview off
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3800 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:48:07 +00:00
Benny Prijono 65030232bd Misc (re #1370): fixed change video capture device for a call implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3799 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:37:46 +00:00
Benny Prijono 3c1ed0c724 Misc (re #1370): rename command "vid call set-cap" to "vid call cap", and added command "vid win arrange" to auto-arrange windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3798 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:33:06 +00:00
Sauw Ming 8350e7e39c Re #1370: Fixed dshow enumeration device capability.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3797 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:11:15 +00:00
Sauw Ming 3a55bb9818 Re #1266:
* Make sure that all media transports are already created and completed to fix the assertion when making call using ICE.

 * Change the callback pjsua_med_tp_state_cb to return pj_status_t (instead of void)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3796 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 06:49:09 +00:00
Nanang Izzuddin 93d8707713 Close #1381:
- Added 'ignore_fmtp' field in pjmedia_vid_codec_param to allow application to omit SDP fmtp in codec param without risking video size and frame rate param being overridden with default values.
 - Updated sample app vid_streamutil.c to use that field, which currently not supplying SDP fmtp to video codec.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3795 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 06:37:46 +00:00
Sauw Ming 298bf2e399 Re #1370: fixed a bug which accidentally overwrites the function parameter.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3794 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 06:18:47 +00:00
Benny Prijono eb66398e22 Misc (re #1370): calling pjmedia_vid_port_start() more than once had caused freezing capture video if preview is enabled before making video calls
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3793 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 06:05:36 +00:00
Benny Prijono 444a3d607d Misc (re #1370): vid_dev_stream should not call start() if it is already been started
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3792 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 05:57:37 +00:00
Benny Prijono 5394880fcb Misc (re #1370): removed dead code in session.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3791 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 05:56:27 +00:00
Nanang Izzuddin a5964e7bb4 Misc (re #1370): minor fix compile warning on VS2005 about comparison between int & unsigned int.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3790 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 05:39:18 +00:00
Benny Prijono 0e9082d021 Fixed link error in pjsua due to r3785 (Misc, re #1370)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3789 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 14:09:24 +00:00
Benny Prijono 86e9162900 Fixed missing updating of call_med's cap_dev after fast switching (re #1362)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3788 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 13:49:40 +00:00
Benny Prijono 10ff56e0a2 More re #1362: actually try to use the device switching capability in pjsua-lib, in pjsua_call_set_vid_strm(PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV) operation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3787 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 13:35:41 +00:00
Benny Prijono 83a9eaf5cb Added pjsua_call_vid_stream_is_running() and pjmedia_vid_stream_is_running() API (closes #1379)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3786 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 08:23:07 +00:00
Benny Prijono 1cad0bba2e Misc (re #1370): auto arranging of video windows in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3785 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 04:04:49 +00:00
Benny Prijono 22cce53b9e Misc (re #1370): minor fix in pjsua_vid_preview_get_win() documentation which said it will return NULL instead of PJSUA_INVALID_ID if the window is not created for the device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3784 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 04:03:49 +00:00
Benny Prijono 0d6cce05af Misc (re #1370): open v4l2 in blocking mode to get rid of Resource temporarily unavailable error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3783 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 04:02:47 +00:00
Nanang Izzuddin 42a275bb10 Re #1358 (minor updates in event.c):
- Avoid compile warning when trace is disabled.
 - Added pointer of subscriber in [un]subscription log trace.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3782 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03 11:01:09 +00:00
Benny Prijono 85bf31c384 Added PJMEDIA_VID_DEV_CAP_SWITCH capability to allow fast switching to another device while the video device stream is running. Currently not implemented on any devices.(This closes #1362)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3781 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03 09:43:10 +00:00
Sauw Ming 903154fe62 Re #1266: Modified pjsua_media_channel_deinit() to resume deinit in the callback (instead of returning PJ_EBUSY) and make sure the right transport is used before calling dlg_respond()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3780 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03 08:22:48 +00:00
Nanang Izzuddin c12a19db8f Fix #1358:
- Fixed wrong place of video capture & render event subscription initialization, causing it getting reinitted while being subscribed.
 - Moved capture/render event unsubscription to be after capture/render port stopped. Also restart the capturer (after being stopped for unsubsciption & stream detachment) only when the capturer is being used by other, e.g: stream or preview.
 - Fixed error handling in pjsua_call_reinvite(), call pjsip_dlg_dec_lock() only if dlg is successfully acquired.
 - Minor: added [un]subscribtion log to event.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3778 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03 05:23:59 +00:00
Sauw Ming ec76535df6 Closed #1266:
Handle incoming calls when media transport is created asynchronously. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3777 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03 02:04:36 +00:00
Benny Prijono 8468557014 Closed #1361: codec API change. Details:
- changed encode(), packetize(), unpacketize(), and decode() to encode_begin(), encode_more(), and decode()
 - codec has new "packing" setting
 - updated stream, aviplay, codec-test, and stream-util due to above
 - minor doxygen documentation fixes here and there


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3776 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-29 08:31:15 +00:00
Sauw Ming 848742fe2c Re #1266: Fixed failed automated tests for ICE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3775 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-28 04:20:30 +00:00
Nanang Izzuddin e9b279b896 Close #1360: implementated video orientation (currently only for video devices).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3774 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-27 05:24:06 +00:00
Nanang Izzuddin 3a77157cb0 Misc video (re #1370): fixed function definition specifier of pjmedia_vid_tee_remove_dst_port().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3773 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-23 04:06:01 +00:00
Nanang Izzuddin ca35618965 Closes #1377: fixed video stream cleanup to reset back cap_win_id & rdr_win_id value to PJSUA_INVALID_ID after capture/render device released from the call stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3772 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-23 04:00:27 +00:00
Sauw Ming 99cc8ff102 Re #1266: Fixed crash when accepting incoming call.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3767 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-22 04:24:56 +00:00
Sauw Ming 96cabacfeb Re #1266: Fixed build error in non-Windows platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3764 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-21 11:21:33 +00:00
Sauw Ming 73ecfe861e Re #1266: Asynchronous media transport creation
* Add feature that allows ICE media transport to be created asynchronously.

 * Add new callback, e.g. on_call_media_transport_state(call_id, state_struct) to report media transport status.

 * Handle outgoing calls while creating media transport asynchronously.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3763 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-21 10:20:01 +00:00
Benny Prijono 39203b8824 Related to preview (re #1340): handle problems with starting or stopping preview during a call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3758 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-20 10:07:55 +00:00
Benny Prijono 1e86d5af32 Misc video (re #1370): ignore return value of sws_scale() as it returned zero on Linux in some conversion, although the resulting picture looks okay
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3757 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-20 10:06:32 +00:00
Benny Prijono aa15fbb598 Implemented native video preview support. This closes #1340
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3756 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-19 08:26:35 +00:00
Benny Prijono ed0f3f0164 Implemented sipecho for testing (fixed #1373)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3754 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-19 01:15:02 +00:00
Benny Prijono b90fd3879d Modified the libraries to use the new log indentation feature re #1372
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3753 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-18 14:59:56 +00:00
Benny Prijono 9cc7850153 Implemented re #1372: New log features: indentation and thread switching indication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3752 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-18 14:38:46 +00:00
Sauw Ming 0cf69d1854 Re #1370: Use GCD instead of NSThread for iOS video device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3750 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-16 02:32:12 +00:00
Benny Prijono 71b10fd2f7 Changed version to 2.0-alpha-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3740 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 11:21:57 +00:00
Benny Prijono b9d2d7549f Changed version to 2.0-alpha!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3738 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 10:01:26 +00:00
Benny Prijono 6565b5834c Fixed #1357: temporarily disabled event in pjsua due to crashing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3737 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 09:54:02 +00:00
Sauw Ming 8c46f441ae Fixed #1353: memory leak in qt_dev
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3736 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 08:36:59 +00:00
Nanang Izzuddin 775918f35d Misc (re #1320): fixed wrong check order in pjsua app vid_handle_menu(), input string "vid " crashed the app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3735 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 07:58:52 +00:00
Benny Prijono 67f2c544cf Disabled H.264 codec [re #1320/Misc]
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3734 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 07:57:55 +00:00
Sauw Ming 73b344ddb9 Re #1354: Removed pj_run_app() from vidgui
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3733 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 04:21:35 +00:00
Benny Prijono a0dbe05e48 Fixed crash when call is disconnected while video is not fully running (e.g. ICE negotiation failed). [Re #1263]
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3732 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 04:16:14 +00:00
Benny Prijono 32a3a80c40 Re #1320 (misc): shut off v4l2 stderr logging
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3731 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 04:14:28 +00:00
Benny Prijono 4c1c89a018 Fixed compilation error on conf_switch.c if PJMEDIA_CONF_USE_SWITCH_BOARD is enabled (re #1320, thanks Bo Shi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3730 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 02:38:01 +00:00
Benny Prijono 3a61e85daa Added build instruction to vidgui sample (re #1327)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3729 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 02:34:42 +00:00
Sauw Ming 4c076ae7aa Fixed #1354: stopping preview may hide parent window.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3728 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 02:33:50 +00:00
Nanang Izzuddin 56c2b82cbd Re #1327 (vidgui): Minor fix on windows VidWin::attach(), applying window style WS_CHILD to unattached/unparented SDL window causes strange behavior: after parented to a QWidget, it doesn't follow the parent/QWidget movement but its coordinate is relative to the parent/QWidget.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3727 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-26 05:51:13 +00:00
Nanang Izzuddin 4ee8686a5c Re #1327:
- Vidgui UI updates on Qt must be done in the UI thread, implemented this with Qt signal-slot mechanism.
 - VidWin::show() better be called internally by VidWin class instead of MainWin.
 - Fix QString to const char* issue, keeping the pointer returned by "QString::to*()::data()" won't work, the pointer actually points to a temporary data (lifetime issue).
 - Minor: cleaning up unused lines in vidgui.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3726 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-26 04:30:18 +00:00
Nanang Izzuddin 15ad7f2399 Fixed #1352:
- Updated maximum video tee ports in pjsua video preview to (PJSUA_MAX_CALLS+1).
 - Removed video tee maximum ports compile-time setting, MAX_DST_PORT_COUNT.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3725 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-26 04:19:04 +00:00
Benny Prijono 2047bd7c8f Re #1351: option to initially hide video preview window to avoid floating window. Also added pjsua_vid_preview_param_default()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3724 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-25 11:59:39 +00:00
Sauw Ming 1f9fe34ef3 Re #1349: Fixed a potential problem when stopping the video port. We should stop the clock first then stop the stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3723 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-25 05:39:19 +00:00
Sauw Ming 6073bd1448 Fixed #1349:
It seems that QTCaptureSession's stopRunning only posts a message to stop the input worker thread so we need to make sure the message is processed if it is called from the main thread.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3722 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-25 05:36:48 +00:00
Nanang Izzuddin 1e853cf150 Re #1327 (vidgui): Fix stuck/hang when quiting vidgui without stopping video preview. Somehow the SDL will stuck (wait forever) in destroying its render window when the render window parent (VidWin) hasn't been destroyed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3721 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 18:35:27 +00:00
Sauw Ming 7fba2682e7 Fixed #1334: Fix the problem of getting stuck when trying to quit SDL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3720 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 08:00:30 +00:00
Benny Prijono 04e2b41727 Re #1327 (vidgui): added --silent option when invoking make otherwise it will capture gibberish when running make to regenerate the files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3719 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 07:05:54 +00:00
Sauw Ming 1d8ceb1cf5 Re #1334:
* Removed support for SDL 1.2

 * Add job queue inside SDL



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3718 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 05:54:25 +00:00
Nanang Izzuddin 26b7d44274 Re #1346 (python test fixes): Disabled (temporarily) {{{scripts-call/150_srtp_2_3.py}}} as this scenario requires SRTP optional-with-duplicated-media (ticket #1267).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3717 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-19 12:41:40 +00:00
Nanang Izzuddin bb6f57faca Re #1346 (python test fixes): Updated test scenario that requires pjsua to generate multiple media offer using --extra-audio instead of using --use-srtp=3 (optional-with-duplicated-media).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3716 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-19 12:24:48 +00:00
Nanang Izzuddin fad6f69269 Fixed #1348:
- updated the year in all copyright texts with 2011
 - put copyright text into newly added files



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3715 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-19 09:35:25 +00:00
Nanang Izzuddin d8c33d8435 Re #1347: Fixed case 1, 2, and 3 above:
- Generating a deactivated pre-answer media by cloning remote media. There was a case that the media transport in the offer is bad/unrecognized, PJSUA still generated the preanswer with RTP/AVP.
 - When generating answer, it should apply max media count (max_audio/video_cnt in account setting) after SDP negotiation instead of in the pjsua_media_channel_init()). This will require PJSUA to perform SDP re-negotiation when the SDP answer get changed.
 - Fixed media priority/acceptibility sorting, e.g: media with RTP/SAVP transport still got acceptable score in SRTP disabled mode, this messed up the algorithm of applying max media count setting.
 - Fixed SDP negotiator to skip format match in generating answer when the pre-answer provided is deactivated (port 0).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3714 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 18:30:55 +00:00
Nanang Izzuddin 33380c5beb Re #1346 (python test fixes): Updated test scenario involving negotiation SRTP-mandatory vs SRTP-disabled or vice-versa, call rejection is using 488 now (was using 406).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3713 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 18:11:08 +00:00
Nanang Izzuddin a1ae1bdec4 Re #1346 (python test fixes): Updated test scenario involving sending REGISTER to pjsua, now pjsua has simple registrar so registration will be accepted (was rejected).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3712 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 17:34:29 +00:00
Nanang Izzuddin aa967ad7da Re #1346 (python test fixes): adjust test scenario to follow the new behavior of pjsua in selecting active media from multiple media with same types, i.e: it will select the first media (previously/1.x it will will select the last).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3711 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 17:31:46 +00:00
Nanang Izzuddin 1f18daa69e Re #1346 (python test fixes): Updated string pattern constants as some pjsua log messages has been changed in 2.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3710 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 17:26:11 +00:00
Nanang Izzuddin 4b3f7cd502 Fix #1345: Fixed samples-per-frame calculation formula bug in PJMEDIA_SPF().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3709 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 04:57:42 +00:00
Nanang Izzuddin 9c012a589b Re #1320: Fixed SDP negotiator in generating connection info for SDP media answer when the media is deactivated (was always adding connection line for the media, even if SDP session already has one).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3708 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-17 10:03:53 +00:00
Benny Prijono c2997e7e85 Dummy checkin for testing the automated testing scripts..
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3707 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-16 09:17:22 +00:00
Benny Prijono 00d8e84471 Re #1344 (automated test): make sure run_continuous.py returns correct exit code
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3704 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-16 08:27:38 +00:00
Benny Prijono 304530916f Re #1320 (misc/automated testing): enhanced run_continuous.py with: 1) custom group name suffix option 2) one time check option instead of loop 3) force option. Note that this was copied from #1264
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3703 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-16 06:28:36 +00:00
Sauw Ming 24c39a37ec Re #1324: Add checking of iOS SDK frameworks in the configure script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3701 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-16 05:44:46 +00:00
Nanang Izzuddin d12e8144de Re #1320: Fixed linking problem of sample apps on Windows platform, undefined symbols used by dshow video dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3700 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 22:40:32 +00:00
Nanang Izzuddin 5325f57577 Re #1327, some fixes on the simple GUI app:
- Removed timer usage in resizing window, window resizing can be done real-time now (see r3698).
 - Fixed linking problem on Windows platform: undefined 'main' function.
 - Fixed build problem on Mac, compiling .cpp file containing objective C/C++ codes with g++ needs '-ObjC++' flag.
 - Minor changes in vidgui, e.g: function/variable rename, cleaning up unused/junk lines.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3699 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 22:29:14 +00:00
Nanang Izzuddin c40fc12a90 Re #1285: Updates for SDL 1.3 only:
- Changed window mode from 'resizable' to 'borderless'.
 - Fixed window resize handling so resizing won't need destroy-recreate the SDL objects (this also fixes lost-focus problem in resizing window on Windows platform).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3698 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 22:06:40 +00:00
Benny Prijono 95abc7af63 Re #1327 (vidgui):
- fixed wrong default capture device (was 1)
 - fixed assertion if unable to open capture device
 - in qmake project file (vidgui.pro):
   - fixed INCLUDEPATH
   - added debug and release setting
   - added (disabled) static linking setting



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3697 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 10:04:35 +00:00
Benny Prijono 4829f5fffa Re #1285 (SDL): fixed compilation error with SDL < 1.3 (this support should be dropped soon)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3696 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 09:59:15 +00:00
Benny Prijono 382976de65 Re #1327 (vidgui): fixed crash on Linux because SDL_Init() needs to be called prior to creating QApplication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3695 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 09:51:23 +00:00
Benny Prijono e212bc1068 Re #1263 (Video API):
- Added PJSUA_CALL_VID_STRM_NO_OP to occupy value 0 for the enum
 - Added pjsua_call_vid_strm_op_param_default() to initialize pjsua_call_vid_strm_op_param
 - Renamed pjsua_call_get_transport_info() to pjsua_call_get_med_transport_info()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3694 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 09:38:42 +00:00
Sauw Ming d8aa67c204 Re #1320: Fixed configure script for detecting ffmpeg libraries (thanks to Samuel Vinson for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3691 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-09 04:31:41 +00:00
Sauw Ming 5707f359f7 Re #1324: Fixed compilation error on iPhone OS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3690 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-09 03:31:40 +00:00
Sauw Ming 59b51c45ba Re #1334: support for various thread models for SDL 1.3. There are three thread models implemented: running SDL on the main thread (by default it will be used on Mac/iOS), running SDL in ONE thread (by default it will be used on Linux), or running SDL in a single thread for each window (by default it will be used on Windows).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3689 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-08 05:41:19 +00:00
Benny Prijono 4ba7c9517a Misc (re #1320): fixed link error in pjmedia_test and aviplay samples if ffmpeg is not enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3688 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-08 04:18:55 +00:00
Benny Prijono 7e50ff08b4 More re #1327 (vidgui): added vidgui.pro and removed generated files from svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3687 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-02 04:26:47 +00:00
Nanang Izzuddin d4ec2819af Re #1327: Very early version of simple video GUI, built on Qt, should run on win/lin/mac.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3686 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-01 12:57:45 +00:00
Benny Prijono 4426153088 Re #1263 (PJSUA-LIB video API): added doxygen comments on stream_op values
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3685 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-26 08:48:48 +00:00
Nanang Izzuddin db9b0028ae Close #1339: added renderer device ID info into video window info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3684 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-26 08:17:25 +00:00
Nanang Izzuddin e7acf22453 Fix #1338: Updated pjsua_modify_acc() to handle the new account config fields: max_audio_cnt, max_video_cnt, vid_in_auto_show, vid_out_auto_transmit, vid_cap_dev, vid_rend_dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3683 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-26 08:10:29 +00:00
Perry Ismangil fed7ebf86f Re #1254 Further tweaks turning off treeview generation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3679 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-23 11:23:08 +00:00
Benny Prijono 7df1934fb5 Misc (re #1320): fixed compilation error if SRTP is disabled. Thanks Bo Shi for the report
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3678 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-23 02:54:03 +00:00
Sauw Ming edc3050db0 Re #1334: Refactor SDL device
* Separate Obj-C implementation for Mac OS X so that the code will be more organized and readable.

 * Add get native window capability via OUTPUT_WINDOW cap



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3676 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-22 08:28:53 +00:00
Nanang Izzuddin 6e2fcc3aea Re #1332: Added type definition of video window handle.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3675 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-22 04:49:36 +00:00
Benny Prijono 5b0af63777 Fixed #1329: Added --with-sdl option in aconfigure script to specify alternate libSDL location
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3672 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-20 03:16:25 +00:00
Nanang Izzuddin f6d2eb6188 Re #1324:
- Changed default value of PJMEDIA_HAS_VIDEO to disabled.
 - Fixed code and build setting on Symbian for build correctness, it builds fine now.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3671 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-20 03:05:03 +00:00
Sauw Ming 68c145760e Re #1278: Fixed linker error on Mac and iOS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3670 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-20 03:00:48 +00:00
Perry Ismangil c2f2e5550c Re #1254 Doxygen configuration and makefile changes to support version specific documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3669 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 21:42:58 +00:00
Benny Prijono 2f1b156357 Misc (re #1320): wrongly used the obj-c version on Linux build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3668 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 11:39:34 +00:00
Nanang Izzuddin 63b3c13cd2 Fixed #1271: protected all video features with PJMEDIA_HAS_VIDEO macro setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3667 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 11:11:07 +00:00
Nanang Izzuddin d93c68a997 Re #1326:
- Fixed compile warnings on vs2005
 - Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3666 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 08:40:20 +00:00
Nanang Izzuddin 909e59b025 Re #1326: Updated vs2005 project setting for newly added file audio_codecs.h/c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3665 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 05:12:59 +00:00
Nanang Izzuddin fe68f1dc55 Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 03:42:28 +00:00
Nanang Izzuddin 96f8dca165 Fix #1295: Added thin wrapper for audio and video codec operations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3663 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 10:19:59 +00:00
Benny Prijono 4cd97b4da7 Re #1294: minor documentation fixes
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3662 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 09:59:26 +00:00
Benny Prijono 35fc1eb3e4 Fixed #1294: New pjmedia_codec_register_audio_codecs() API to register all known codecs, and also added implementation to deregister all codecs when the media endpoint is destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3661 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 09:51:46 +00:00
Sauw Ming 2fe2b5eee0 Re #1282: change for Mac and iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3660 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 08:36:23 +00:00
Nanang Izzuddin 250ffa1b29 Misc (re #1320): moved function prototype stop_video_stream() from pjsua_vid.c to pjsua_internal.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3659 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 08:13:11 +00:00
Sauw Ming 5291a2da7d Re #1282:
- Change *fmt in pjmedia_vid_dev_info to array
- Change pjmedia_vid_cb/param to pjmedia_vid_dev_*



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3658 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:52:44 +00:00
Nanang Izzuddin 9808561961 Re #1263:
- Replaced video stream operation DISABLE into REMOVE.
 - Replaced video stream operation ENABLE into CHANGEDIR.
 - Added new param: media direction, used in operation ADD and CHANGEDIR.
 - Updated video stream operation START_TRANSMIT to ignore capture device param (as changing capture device is handled by CHANGE_CAP_DEV operation).



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3657 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:41:02 +00:00
Benny Prijono 1fe04eefb3 Fixed #1265: video events for PJSUA-LIB
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3656 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:27:05 +00:00
Sauw Ming c7bc3aa786 Re #1263:
Fixed assertion when receiving a call with no video



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3655 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:22:49 +00:00
Sauw Ming aa08ef632d Fixed #1281:
Video device should now be able to open the device when provided with the default param.
Tested video device: dshow capture, qt, iOS, SDL



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3654 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 06:42:11 +00:00
Benny Prijono d2a3347bb7 Re #1284 (event framework): unsubscribing does not need to know publisher
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3653 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 06:37:07 +00:00
Benny Prijono ee0ba1872c Re #1265 (GUI events): initial implementation, for renderer only first. Also re #1320 (misc): moved function prototypes from pjsua_xx.c to pjsua_internal.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3652 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 06:18:29 +00:00
Nanang Izzuddin 030aa2bd48 Misc (re #1320):
- Updated (again) vs2005 projects setting for other newly added files (pjmedia-videodev/errno.c).
 - Disabled VMR/DirectShow renderer temporarily.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3651 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 04:36:06 +00:00
Sauw Ming c083083096 Misc (re #1320): add videodev's errno.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3650 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 04:31:24 +00:00
Sauw Ming d95867120c Misc (re #1320): videodev's error message
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3649 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 02:44:35 +00:00
Nanang Izzuddin 98b081a824 Misc (re #1320): update trace log level from 4 to 6 in event.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3648 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 02:39:54 +00:00
Nanang Izzuddin be321fd7d5 Misc (re #1320): fix verification of invalid/negative video device ID in videodev.c, should just returning error instead of raising assertion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3647 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 02:33:17 +00:00
Nanang Izzuddin fd600af656 Misc (re #1320): fix bad error code in directshow video device (was S_FALSE, which seems to be treated as success with SUCCEEDED()/FAILED() macro).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3646 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 02:12:25 +00:00
Sauw Ming ef1dd2ce10 Re #1325:
- Add signature for QT and iOS dev.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3645 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 02:04:03 +00:00
Nanang Izzuddin a6efd6e0b8 Re #1325:
- Added signature for directshow video device.
 - Added signatures.h into pjmedia VS2005 project.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3644 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 02:00:37 +00:00
Sauw Ming 01095d8410 Re #1278: NSApplication and NSAutoreleasePool management for Mac OS X
Application now needs to call pj_run_app() from its main() function and pass a pointer to the application's main function. For some examples, please refer to aviplay, pjmedia_test, and pjsua.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3643 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 08:46:19 +00:00
Benny Prijono 5f7e83981e More re #1284 (event): changed event to use the fourcc value for better extensibility and readability
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3642 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 06:51:51 +00:00
Benny Prijono dbab8aaa19 More re #1325 (pjmedia signature): invented pjmedia PJMEDIA_FOURCC macro, and change signature and pjmedia_format_id to use this object. Added pjmedia_fourcc_name( ) too
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3641 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 06:34:29 +00:00
Benny Prijono fcf5db3e9e Fixed #1325: signature fix pjmedia objects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3640 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 04:56:08 +00:00
Nanang Izzuddin f5269a22b7 Re #1263:
- Implemented media info/statistics APIs: stream info, stream statistic, and transport info.
 - Implemented API of default video stream index in call, pjsua_call_get_vid_stream_idx().



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3639 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 04:42:18 +00:00
Nanang Izzuddin f363802d77 Re #1263:
- Added API pjsua_vid_enum_wins() to enumerate video windows.
 - Minor fixes on video window manipulations.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3638 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 03:47:04 +00:00
Nanang Izzuddin c16590ad20 Re #1263: minor fixes:
- wrong boolean value to be used with PJMEDIA_VID_DEV_CAP_OUTPUT_HIDE in pjsua_vid.c
 - unupdated 'vid' commands in pjsua sample app




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3637 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 02:14:25 +00:00
Nanang Izzuddin 7ad53c33df Re #1263:
- Break down the operation type PJSUA_CALL_VID_STRM_MODIFY into PJSUA_CALL_VID_STRM_ENABLE, PJSUA_CALL_VID_STRM_DISABLE, PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV.
 - Implemented video stream re-enabling (PJSUA_CALL_VID_STRM_ENABLE).




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3636 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 13:31:08 +00:00
Nanang Izzuddin 32b924f7cd Misc (re #1320): fix pjmedia_vid_dev_get_info() in translating default IDs to real IDs (see r3618).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3635 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 13:23:29 +00:00
Nanang Izzuddin b4d4dade23 Re #1263:
- Renamed API pjsua_call_set_vid_out() with pjsua_call_set_vid_strm().
 - Implemented initial version of the function, features covered:
   - add, remove video media stream during the call
   - change which device to use during the call
   - start/stop video stream transmission




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3634 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 08:51:10 +00:00
Sauw Ming 06dffff4a7 Closed #1323: Video port unit testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3633 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 03:38:59 +00:00
Benny Prijono 2d64772d47 Fixed #1299: New callback to notify that sound device needs to be opened or closed
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3632 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 03:05:22 +00:00
Sauw Ming 8985f550b5 Re #1304: Video port refactoring: fix frame handling when renderer's role is active, change API to get/set clocksource to be unidir
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3631 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 02:37:14 +00:00
Benny Prijono 643a901b02 Misc (re #1320): patch ffmpeg_codecs.c to compile with newer version of ffmpeg (thanks Jeremy Geras for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3630 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 23:16:27 +00:00
Nanang Izzuddin 62053a6a44 Re #1263:
- implemented video window management (get/set visibility, pos, resize)
 - integrated video window and video capture preview into call




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3629 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 11:08:32 +00:00
Benny Prijono 2ba6d27d74 More re #1284: generate PJMEDIA_EVENT_KEY_FRAME_FOUND from ffmpeg_codecs.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3628 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 10:54:56 +00:00
Sauw Ming 3b375a709a Re #1261: Destroy video tee's converter
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3627 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 10:31:51 +00:00
Sauw Ming 5396434e71 Re #1309:
- Add support for vid_dev_get_param() on SDL



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3626 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 10:29:46 +00:00
Nanang Izzuddin f5bfc8da0a Misc (re #1320): added video tee header (vid_tee.h) into pjmedia.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3625 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 10:29:32 +00:00
Nanang Izzuddin 868badbc28 Misc (re #1320): updated (again) vs2005 projects setting for other newly added files (event.h/c).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3624 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 10:28:26 +00:00
Sauw Ming 30389c2180 Closed #1304: Video port refactoring
- Refactor video port functions for active/passive role, active/passive stream role, encoding/decoding
- Converter creation if necessary



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3623 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 10:03:02 +00:00
Benny Prijono d4b5e87796 More on re #1284:
- Replaced bit_info mechanism to report format change in codec with event
 - Updated vid_port, vid_codec_test, etc.
 - Add event publisher to vid_codec
 - Add event publisher to pjmedia_port
 - Add event publisher to vid_stream



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3622 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 09:08:56 +00:00
Sauw Ming ed0d491673 Re #1284
Fixed compilation error on Mac (minor)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3621 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 07:28:59 +00:00
Sauw Ming 59f2b7487f Closed #1261: Video tee
- Add API pjmedia_vid_tee_add_dst_port2() for adding destination port which may need format conversion



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3620 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 07:14:32 +00:00
Nanang Izzuddin 9670575855 Misc (re #1320): updated vs2005 projects setting with the newly added files (such as pjsua_vid.c etc).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3619 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 03:25:33 +00:00
Nanang Izzuddin f4ee415730 Misc (re#1320): added device ID in pjmedia_vid_dev_info, useful for translating default IDs to real IDs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3618 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 03:20:36 +00:00
Benny Prijono 934af0fa2b Initial implementation of re #1284 (Event Framework). Current event has been converted to the new framework. Next to convert is codec event
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3617 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 03:05:35 +00:00
Sauw Ming e2301716fc Re #1261: Video tee
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3616 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 01:45:21 +00:00
Sauw Ming 2e9b884cb3 Re #1304: Video port refactoring
- Change name to vid_port (minor)
- Redesign to support only unidir
- Consistent conversion and frame buffer usage



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3615 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-11 09:36:08 +00:00
Nanang Izzuddin af4e9ec24d Re #1261: added initial version of video tee.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3614 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-11 03:20:40 +00:00
Benny Prijono 145c1b0860 Misc (re #1320): undo r3607 above. The argument type was correctly specified as pointer because it is optional argument
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3613 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 09:55:04 +00:00
Benny Prijono 6dedd29828 Misc (re #1320): fixed potential crash if pjmedia_aud_dev_cap_name() is called with invalid capability
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3612 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 09:26:55 +00:00
Benny Prijono 9f468d176d Initial commit re #1263 (PJSUA-LIB Video API):
- API designed and reviewed (pjsua.h)
 - Implemented these APIs and added to pjsua sample application:
   - video device enums API
   - video capture preview API
 - refactoring in PJSUA-LIB:
   - video stuffs go to pjsua_vid.c
   - call dump goes to pjsua_dump.c

We're still missing:
 - video call API implementation
 - media info and statistic API implementation



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3609 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:46:33 +00:00
Benny Prijono 333eaf1622 Misc (re #1320): fixed crash if invalid capability is specified in pjmedia_vid_dev_cap_name()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3608 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:44:44 +00:00
Benny Prijono 921e8130b8 Misc (re #1320): minor, changed prio parameter in pjmedia_vid_codec_mgr_enum_codecs() from pointer to array to clarify its use
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3607 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:37:55 +00:00
Benny Prijono 9098b2b9f8 Misc (re #1320): added pjmedia_type_name() API
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3606 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:34:26 +00:00
Benny Prijono 6bb3dc7e5e Re #1285: fixed compilation error if SDL < 1.3 is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3605 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:12:37 +00:00
Perry Ismangil ebf16b053e Really fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3602 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-30 12:53:51 +00:00
Sauw Ming cbd82aff70 Re #1309: Add capability names and pointers for the new videodev's capabilities.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3601 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-30 09:31:05 +00:00
Sauw Ming 4051892a98 Closed #1312. Add implementation for Mac OS X and iPhone OS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3593 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-21 10:23:53 +00:00
Sauw Ming 7f7c5bd477 Re #1312: Support for refreshing video device list
Add pjmedia-videodev API: pjmedia_vid_dev_refresh() and its implementation for Windows and Linux.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3592 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-21 09:33:01 +00:00
Sauw Ming 46cdaa8bfa Closed #1309: Add video device capability to support changing position and hiding of renderer window.
Provide SDL implementation for both capabilities.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3590 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-20 06:16:08 +00:00
Nanang Izzuddin 5dea012fa3 Ticket #1304: temporary fix for videoport format change event handling bug, if video port has no converter, format changes may not be applied. Note, need further review that on format changed, video port may need to create video converter if there is none.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3587 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-20 02:42:56 +00:00
Perry Ismangil 1fef1f9b59 Fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3583 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-14 14:35:39 +00:00
Sauw Ming a8e086208e Fixed #1286: Stride issue in dshow renderer (Video Mixing Renderer)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3582 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-13 11:48:37 +00:00
Sauw Ming f477e283fc Closed #1292: Make sure each video device for Mac OS and iPhone OS is always unidir
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3581 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-09 04:13:50 +00:00
Sauw Ming 83db7d64fa Re #1292: Make sure each video device and video port instance is always unidirectional
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3580 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-09 04:08:47 +00:00
Sauw Ming e90ece8dc3 Closed #1275: Change pjmedia_vid_subsys_xx() to pjmedia_vid_dev_subsys_xx()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3579 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-09 04:05:44 +00:00
Sauw Ming d49b17e362 Fixed #1274: SDL video resize
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3578 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-06 11:11:35 +00:00
Sauw Ming 31c44e9511 Fixed #1285: Add support for SDL 1.3
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3577 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-30 08:35:42 +00:00
Nanang Izzuddin 5f32640196 Fix #1235: fixed lock codec to check all active media (previously only checked one media: first active audio).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3573 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-20 08:47:14 +00:00
Nanang Izzuddin 4c7d7e6a51 Re #1214:
- Fixed bug unsynchronized format between encoder and capture device.
 - Added format change detection.
 - Added capture device type setting.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3564 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-10 12:21:57 +00:00
Nanang Izzuddin abaaffa324 Re #1219: silly mistake, missing the real fix of r3562.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3563 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-10 11:44:03 +00:00
Nanang Izzuddin 4ab5aaccf9 Re #1219: Removed decoded buffer size validation before decoding process itself, as the decoded buffer size requirement will be known after successful decoding.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3562 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-10 11:38:27 +00:00
Nanang Izzuddin b6c239c6db Fix #1237, #1238, #1241:
- Fixed handling remote re-offer, where SDP media line may be added or removed.
 - Fixed bug in receiving remote offer (initial or subsequent), media channel create sdp must consider acc->cfg.max_audio_cnt setting.
 - Fixed bug media transport is not closed after call disconnected.
 - Fixed assertion in lock_codec after receiving initial answer but no acceptable media (in pjsua level, e.g: SRTP nego failed), now the call will be terminated.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3560 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-10 05:42:28 +00:00
Benny Prijono 517580b290 Break the compilation in svn trunk to make people switch to new svn URL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3558 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-06 03:40:47 +00:00
Nanang Izzuddin c4d57ad0c8 Changed version to 1.10-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3556 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 10:49:02 +00:00
Nanang Izzuddin ead2bd64bb Changed version to 1.10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3554 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 09:10:15 +00:00
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Nanang Izzuddin ea74971ab1 Re #1250: (Continuing r3550) Added and updated copyright text in ipjsystest files (with "standard" Teluu copyright text).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3552 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 05:50:48 +00:00
Nanang Izzuddin b948b7544c Re #1175: (Continuing r3549) Set SVN properties for some ipjsystest files: keywords=id and eol-style=native.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3551 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 05:47:20 +00:00
Nanang Izzuddin 7adfc86158 Re #1250: Added and updated copyright text in several files (with "standard" Teluu copyright text).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3550 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 05:33:27 +00:00
Nanang Izzuddin 358236f07d Re #1175: Set SVN properties for several files: keywords=id and eol-style=native
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3549 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 05:10:06 +00:00
Nanang Izzuddin 3944314fcf Fix #1249: fixed overwritten buffer bug in splitcomb put_frame().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3548 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-02 05:37:15 +00:00
Sauw Ming aa0271ec44 Fixed #1243: ICE bug: If RTCP is not in use, the agent MUST signal that using b=RS:0 and b=RR:0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3547 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-28 04:01:40 +00:00
Nanang Izzuddin f82043019b Fix #1248: Reset destination info in the INVITE message/tdata before resending it to force re-resolving destination info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3546 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-27 04:58:32 +00:00
Benny Prijono 8f35a0e339 Fixed #1247: Deadlock potential in sip_regc.c if sending fails (thank you Alejandro Orellana for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3545 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-27 03:05:26 +00:00
Benny Prijono ad3ae915a7 Re #1245: bad last commit caused everything to be treated as unregistrations!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3544 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-26 07:39:57 +00:00
Sauw Ming a4b628f8f6 Fixed #1246: Use CFHost for pj_getaddrinfo() on iOS
* Replace the fix for ticket #1104 with this fix
 * Modify pjturn-client/client_main's shutdown() function which conflicts with an existing function

Re-run configure-iphone to use this fix automatically.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3543 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-26 03:07:24 +00:00
Benny Prijono 8251c7fd68 Fixed #1245: Assertion may be raised if iPhone app woken up to perform registration and the server is down (thanks Alejandro Orellana for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3542 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-25 11:47:45 +00:00
Nanang Izzuddin 7feff09c87 Fix #1233: Fixed SDP parser bug when parsing transport in SDP media line without format list.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3541 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-25 06:25:44 +00:00
Benny Prijono 9849fc74fa Fix #1229: bug fix and enhancements for PJLIB-UTIL STUN client:
Bug:
 1. Bug: if UDP packet is lost, the resolver will wait until all retransmissions are done, which means 4 seconds delay.

Enhancements:
 1. Allow caller to specify only 1 STUN server, for faster result.
 1. If both servers point to the same address, only one will be used.
 1. Decrease retransmission delay from 1000 ms to 500 ms for more responsive result.
 1. Reduce memory consumption (from 1024 to 400 bytes).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3540 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-20 09:16:27 +00:00
Sauw Ming da27c9a3cc Re #1213: Fixed format change detection when there is a converter in place.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3539 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-15 14:48:30 +00:00
Benny Prijono f0ba2dc993 Fixed #1232: Possible memory corruptions caused by pjsua_acc_modify() (thanks Viktor Krikun for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3538 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-14 15:38:23 +00:00
Sauw Ming e02d3454c2 Re #1213: Fixed typo and compiler warning for SDL device on Mac
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3537 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 21:50:24 +00:00
Nanang Izzuddin 95358c5770 Re #1182: Applied PJMEDIA_STREAM_RESV_PAYLOAD_LEN (see r3534) in stream.c.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3536 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 20:23:54 +00:00
Sauw Ming 093c569b97 Re #1213: Add on-the-fly format change capability for SDL OpenGL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3535 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 20:06:12 +00:00
Nanang Izzuddin 7d424dfbe2 Re #1182: Added macro setting PJMEDIA_STREAM_RESV_PAYLOAD_LEN to let stream reserve some space for application extra data in the RTP payload, e.g: SRTP auth tag.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3534 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 19:41:41 +00:00
Benny Prijono c8ef0ac966 Re #1219: added configure option to specify ffmpeg path
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3533 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 19:13:56 +00:00
Nanang Izzuddin eda0609932 Re #1219: fix major bug in h263 packetizer in seeking logic of sync point (double zero).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3532 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 18:57:57 +00:00
Benny Prijono 029806a4d1 Re #1201: re-enable printing of ICE and SRTP specific info in call statistic output
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3531 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 18:07:12 +00:00
Benny Prijono 63572990f7 Re #1219: attempt to fix crash in H.264 decoding
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3530 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 18:06:21 +00:00
Benny Prijono 1594fbd920 Re #1219: attempt to fix crash in H.263
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3529 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 18:05:09 +00:00
Nanang Izzuddin 70aa56b0cd Re #1219: increased MPI array size in pjmedia_vid_codec_h263_fmtp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3528 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 16:20:06 +00:00
Benny Prijono da1d3f7f77 Re #1213: fixed compilation error in sdl_dev.c if OpenGL is not available
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3527 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-13 14:21:10 +00:00
Nanang Izzuddin 5f8d589a6a Re #1219:
- Implemented validation of H.264 level in codec param.
 - Update H.264 packetization setting to always send single NAL unit, for better compatibility.
 - Update H.264 SDP custom negotiation to be permissive.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3526 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-12 18:24:19 +00:00
Sauw Ming 02548293f5 Re #1213: Fixed SDL OpenGL to run on Windows.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3525 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 21:38:53 +00:00
Benny Prijono 4d71b1fbbd Fixed #1230: Removed assertion in PJLIB for Posix when fails to release mutex (thanks Marcus Froeschl for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3524 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 21:01:11 +00:00
Benny Prijono 32152ad2d7 Re #1219: removed assertion if outgoing frame is larger than MTU
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3523 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 20:05:55 +00:00
Nanang Izzuddin d00d3f2325 Re #1219:
- Applied max RTP payload size ffmpeg setting (for customized ffmpeg patch only).
 - Updated some ffmpeg setting (qmin, qmax) for bitrate control.
 - Updated ffmpeg codec default size for decoding direction.
 - Removed own timestamp management in ffmpeg encoder.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3522 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 20:04:27 +00:00
Nanang Izzuddin 91ba2a2f1a Re #1201: Added SDP c= line in session level copied from the c=line of the first media, for compatibility purpose.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3521 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 19:59:09 +00:00
Benny Prijono bd6613f326 Re #1185: fixed ICE media transport to work with video in pjsua-lib
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3520 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 17:27:14 +00:00
Benny Prijono 83b424a3a9 Re #1214 (app): enlarge call dump buffer if RTCP XR is enabled, and added option to disable stderr (only works on Posix system)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3519 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 15:16:48 +00:00
Benny Prijono 09c0d67773 Re #1201: fixed sending 488 when receiving double hold
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3518 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 05:03:24 +00:00
Benny Prijono f8957786e2 Support for Intel IPP 7. This closes #1227
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3517 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 02:43:04 +00:00
Sauw Ming ae2f21303d Re #1213: Fixed error space number allocation for video devices.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3516 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-10 23:54:07 +00:00
Benny Prijono 9d5efa7681 Re #1208: fixed error if RTCP XR is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3515 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-10 23:52:05 +00:00
Benny Prijono e1998acd38 Re #1182: fixed misc error with RTCP XR
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3514 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-10 23:51:30 +00:00
Benny Prijono a05cd67d4c Re #1182:
- Removed RTCP-XR from video stream.
 - Fixed few compile warnings on GCC for incompatible pointers.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3513 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-10 23:26:41 +00:00
Nanang Izzuddin a641429ed1 Re #1201:
- fix bug responding 488 after receiving re-INVITE for doublehold
 - updated pjsua_media.c to skip instantiating video devs when call hold by local.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3512 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-08 04:26:18 +00:00
Sauw Ming e098c595d0 Re #1213:
(Minor): Add check to dshow so that it doesn't need to change the output param when not trying to use default size and/or fps.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3511 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-08 04:14:00 +00:00
Sauw Ming ce250db637 Re #1214: Add Mac OS X compatibility for pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3510 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-08 04:05:25 +00:00
Sauw Ming f7b429c34b Re #1213:
* Add pjmedia_frame_copy()
 * Add converter for renderer videoport
 * Add checking in SDL device since it may receive a frame size bigger than expected



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3509 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-08 04:04:25 +00:00
Nanang Izzuddin e03faada5c Re #1201: Fixed crash when remote initiate call hold with SDP media connection address "0.0.0.0".
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3508 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 14:51:28 +00:00
Sauw Ming 0531a722f2 Re #1213: In case of failure, Dshow capture dev now tries re-opening the device with default setting (size and/or fps).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3507 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 08:27:27 +00:00
Benny Prijono 316f02aac0 Re #1185: requesting call hold did not set video direction to sendonly
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3506 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 07:53:25 +00:00
Benny Prijono 63a894d2e2 Re #1213: added printing error message when fails to open DirectShow device
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3505 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 07:22:35 +00:00
Benny Prijono 9439562d14 Misc re #1208: fixed SIP user agent layer to not automatically reject incoming REGISTER containing To-tag with 481 (functionality required by a registrar sample)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3504 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 05:16:09 +00:00
Benny Prijono 067a382a50 Re #1186: rejecting media did not put c= line, causing PJMEDIA_SDP_EMISSINGCONN error
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3503 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 05:14:26 +00:00
Benny Prijono 284b80f521 Re #1219: compile error with undeclared FF_PROFILE_H264_BASELINE and FF_PROFILE_H264_MAIN
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3502 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-07 05:12:35 +00:00
Nanang Izzuddin 81f0e6a3de Re #1219: Added H.264 SDP fmtp "sprop-parameter-sets" to ffmpeg.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3501 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 14:56:03 +00:00
Nanang Izzuddin 56b2ce43d8 Re #1186:
- Added custom negotiation callback mechanism in SDP negotiator, mainly for specific formats that require SDP fmtp negotiation.
 - Modified video codec ID string to use encoding name+payload type (was encoding name+clock rate), also added encoding description in video codec info, so duplicated codecs (e.g: multiple H264 configurations) can be differentiated.
 - Few enhancements for H264 in ffmpeg wrapper (e.g: added proper profile-id & packetization-mode setup).




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3500 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 13:55:01 +00:00
Sauw Ming 21bd3fdd59 Re #1213:
Add OpenGL support for SDL renderer



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3499 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 11:30:18 +00:00
Benny Prijono 446082c07a Re #1186: fixed crash when parsing fmtp with more than 8 parameters by enlarging the default limit, fix the crash, and make the limit configurable
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3498 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 07:01:55 +00:00
Benny Prijono f55fb6b1e1 Re #1208: fixed typo in comment and combine the typedef for better doxygen documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3497 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 07:00:02 +00:00
Benny Prijono ea508b4ca1 Re #1219: protect new ffmpeg features with #ifdefs
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3496 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 06:58:38 +00:00
Nanang Izzuddin 81c78afc15 Re #1219: fixed compile error of typo (accidentally undone modification before svn checkin).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3495 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-01 07:21:44 +00:00
Nanang Izzuddin 2636c1424c Re #1219:
- Fixed assertion in H263 & H264 packetizer caused by invalid unpack_last_sync_pos after packet loss.
 - Updated ffmpeg_codecs.c to lower H264 video encoding latency.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3494 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-01 07:12:59 +00:00
Nanang Izzuddin d91af57b38 Re #1219:
- Initial version of H264 implementation (codec & packetization).
 - Added vid_codec_util.h/c for video codec utilities (e.g: fmtp parser).
 - Updated video RTP packetizations to be configurable and have internal state (to be more resilient to packet lost, etc).
 - Fixed wrong SPF calculation in PJMEDIA_SPF2.
 - Updated vid_codec_test.c to also have RTP packetization test.
 - Updated sdp_neg.c to verify H.264 capability match.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3493 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-31 17:29:54 +00:00
Sauw Ming e2c3501164 Re #1221: Fixed wrong reference to the socket variable.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3492 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-31 07:38:57 +00:00
Benny Prijono 371846594a Fixed #1225: iPhone: UDP socket send error after waking up from background mode (thanks Joe Meade for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3491 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-31 05:54:16 +00:00
Nanang Izzuddin 7f8d76f032 Re #1224: Fixed silly bug in pjsua_acc_modify(): incremented wrong loop counter in updating credential info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3490 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-29 03:47:16 +00:00
Benny Prijono e9f70d8dcf Re #1213 (Video devices):
- Video device now opens in "best effort" mode, i.e. it may open with different size and fps than requested. The actual size and fps will be reflected in the "param" upon return. The vidport must check this against any differences, and create converter accordingly.
 - Removed const for param argument in vid_create_stream() API
 - Currently converter in vidport will not work if vidport is opened in bidir. Converter for renderer is untested



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3489 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-25 08:38:26 +00:00
Benny Prijono f6bebc36f8 Re #1214: more elaborate tests on vid_dev_test
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3488 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-25 08:23:12 +00:00
Benny Prijono 00ae45add3 libswscale rearrangement (re #1219/ffmpeg codecs): instantiate libswscale converter from the converter manager instead of having to instantiate it manually in all apps
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3487 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-25 08:13:43 +00:00
Nanang Izzuddin 8dbe1a1244 Re #1219: Updated H263 packetizer to just return PJ_EINVAL (instead of triggering assertion) when the supplied bitstream is invalid.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3486 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-25 07:56:41 +00:00
Sauw Ming 0c668f99c5 Re #1214: Enable pjsua to use SDLmain library if possible.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3485 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-25 06:57:25 +00:00
Sauw Ming 03ad8906b3 Re #1213:
* Move Mac OS' CFRunLoop object from vid_dev_test inside qt
 * Remove NSApplication object management and auto release pool from vid_dev_test. Temporarily depend on SDLmain library for these.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3484 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-24 15:20:05 +00:00
Sauw Ming 1b39a64647 Re #1214: add aviplay in the samples' makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3483 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-24 15:08:54 +00:00
Benny Prijono 1d65528737 Fix #1223: Bug in initializing message body's media type from incoming message (thanks Gang Liu for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3482 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 12:01:21 +00:00
Benny Prijono 701412b746 Fix #1222: Assertion if BYE is received while callee is still in early state
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3481 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 11:46:17 +00:00
Sauw Ming 446ba13803 Re #1221: Move setting the socket option to pjlib level (sock_bsd) instead of in the SIP transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3480 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 10:23:31 +00:00
Sauw Ming 71841f7e33 Re #1221: Fix variable name error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3479 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 06:11:40 +00:00
Sauw Ming d9d2f5e932 Fixed #1221: Crash when SIP transport tried to write to a broken pipe.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3478 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 06:08:36 +00:00
Benny Prijono 587c794c88 Re #1214 (apps): added registrar functionality in pjsua for easier testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3477 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 06:08:25 +00:00
Nanang Izzuddin 07fe8d35f9 Re #1201: Fixed bad definition of pjsua_vid_set/get_setting() (caused compilation error on GCC).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3476 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 04:43:01 +00:00
Benny Prijono a77a0da32d Misc (re #1175): added protection against broken pipe exception in python unit test when handling error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3475 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 03:48:13 +00:00
Benny Prijono 639873e0df Bug re #1161: the user header list was not cloned properly
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3474 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 03:46:26 +00:00
Benny Prijono 0ca45f44bd Re 1220: typo in PJ_ALIGN_DATA implementation for gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3473 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 10:10:30 +00:00
Nanang Izzuddin 269eec1fc3 Re #1214:
- Added option in pjsua app to select video devices, and modified 'Cp' menu command to also change video codecs priority.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3472 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:50:48 +00:00
Nanang Izzuddin 50fae73e7d Re #1201: Added pjsua API for video devices and codecs management.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3471 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:49:23 +00:00
Nanang Izzuddin 63b01ab684 Re #1213:
- Added encoding format conversion (only format ID) in video port.
 - Fixed few bugs in direct show capture device:
   - VIDEOINFOHEADER.AvgTimePerFrame calculation overflow which caused failure in opening capture device.
   - AM_MEDIA_TYPE.formattype validation to avoid bad type casting (of VIDEOINFOHEADER).



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3470 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:46:04 +00:00
Nanang Izzuddin ada412638c Re #1219: updated stack aligning mechanism using PJ_ALIGN_DATA (see ticket #1220).
- 


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3469 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:43:24 +00:00
Nanang Izzuddin 4415031cee Close #1220:
- Added macro PJ_ALIGN_DATA for aligning data (compiler specific), currently needed by ffmpeg encoder to provide 16-bytes aligned stack for SSE/MMX operation.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3468 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:38:49 +00:00
Sauw Ming b93e68808c Re #1213 (video devices):
Modified ios_dev and qt_dev to use pjmedia_vid_dev_stream



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3467 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-19 05:33:21 +00:00
Benny Prijono 7825c4980a Re #1219: fixed error in Linux/gcc due to unimplemented alignment macro, and remove the assembly implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3466 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-18 09:57:44 +00:00
Benny Prijono 9b61ff5873 Re #1201: replace union media stream in pjsua_call_media with struct, to avoid the conf_slot corrupting the video capturer value
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3465 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-18 09:55:48 +00:00
Benny Prijono cd62c4e507 Intel IPP version 7 support on Linux. This closes #1200
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3464 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-18 08:33:29 +00:00
Nanang Izzuddin bf26db1ec6 Re #1201:
- Initial version of video stream integration into pjsua-lib.
 - Replaced audio info array in pjsua_call_info with media info array.
 - Added video media info into call dump.
 - Fixed assertion caused by pjsua_set_state(NULL) logging after pjlib shutdown.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3463 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-18 07:54:50 +00:00
Sauw Ming 27d8afbc88 Fixed #1218: Modify configure-iphone to use the latest version of gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3462 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-18 04:24:31 +00:00
Benny Prijono 135290d24e Re #1215 (framework):
- vstream:
     - allow NULL pool parameter which means vstream will create one
     - Updated remote FPS detection to only be performed if decoder returns frame (however the FPS detection is currently disabled as some endpoints changes fps continuously, causing renderer restart continuously too).
 - codec:
     - Updated video codec info to have RTP packetization support flag, also update endpoint in generating SDP to only include codecs whose RTP packetization support.
     - Added dynamic payload types for video codecs.
     - (minor) separate video PT into separate enum in pjmedia-codec/types.h
 - H264 initial experiment.
generated frames (for libx264 sake).
 - Replaced PJ_EUNKNOWN in some places with the appropriate error code.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3461 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 11:33:34 +00:00
Benny Prijono f35f842c71 Re #1214: work on simpleua:
- protect with #ifdef PJMEDIA_HAS_VIDEO etc.
 - fix the format setting to get the format from the correct port


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3460 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 11:27:37 +00:00
Benny Prijono 349037b25d Re #1213 (video devices):
- fixed devices to correctly increment the frame timestamp
 - minor fix in video port to set default "active" value to 1 in the param


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3459 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 11:25:19 +00:00
Benny Prijono 3f3df73671 Re #1211 (new pj_gettickcount() API): fixed compilation error on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3458 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 05:09:36 +00:00
Benny Prijono 0bc99a9ca3 Modifications in PJSUA-LIB to support multiple media streams (multiple audio and/or video) and dynamic creation of media transports. This closed #1185 and closed #1201.
1185: Dynamic creation of media transports
============================================
Done:
 - media transports are created on demand now

Todo:
 - media transport creation is still blocking


1201: Video support in PJSUA-LIB
===================================
Done:
 - call now supports N media (N audio and M video)
 - number of audio/video streams is configurable per acc
 - extra audio stream info in pjsua_call_info to support multiple audio streams
in one call
 - video subsys and ffmpeg initialization in PJSUA-LIB
 - ability to offer and create video SDP answer
 - "dq" for more than 1 audio streams
 - introducing pjsua_state and pjsua_get_state()

API change:
 - on_stream_created() and on_stream_destroyed() callbacks: changed session to
stream

Todo:
 - many others features are disabled, just search for DISABLED_FOR_TICKET_1185
macro (these have also been added to ticket #1193 (Issues & Todos)). Notable
missing features are:
      - creation of duplicate SDP m= lines for optional SRTP
      - mm.. that's it?
 - whole lot of testings

pjsua:
===============
 - Added --extra-audio and --video options. Specify these more than once and
each time an extra audio/video streams will be added. :)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3457 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 04:34:43 +00:00
Sauw Ming 59d2c8c271 Fixed #1211: Add pjlib API pj_gettickcount() that returns a monotonically increasing timestamp
* Changed the timer_heap to use pj_gettickcount().
 * Changed ioqueue to use pj_gettickcount().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3456 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 09:22:24 +00:00
Nanang Izzuddin 3a86f326d0 Fix #1212:
- Updated pj_register_strerror() to just return PJ_SUCCESS when the same range
and handler is being re-registered.
 - Removed the usage of static flag of error string handler registration in some
modules, which prevent the re-registration of the handler, e.g: in restarting
pjsua, as such flags never got reseted.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3455 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 07:34:16 +00:00
Sauw Ming c1f500ce8b Re #1175 (Misc): coreaudio fixes:
* Setting audio session category is now during stream creation instead of in the factory initialization.
 * Reset the audio session category after an interruption.
 * By default, audio route change property listener is disabled as it is no longer required.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3454 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 05:44:14 +00:00
Benny Prijono cf51b61613 Re #1209: clarified in the comment that PJSUA_CALL_UNHOLD is only valid for pjsua_call_reinvite()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3453 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 04:04:59 +00:00
Benny Prijono dec3a37dbc Fixed #1209: new enhancement: Option to update Contact URI when sending re-INVITE or UPDATE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3452 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 03:52:20 +00:00
Benny Prijono 854ec1a682 Re #1208 (misc): added PJMEDIA_HAS_VIDEO macro as the top level macro to disable video features
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3451 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:29:53 +00:00
Benny Prijono 867280b9eb Re #1186 (SDP works); added few more APIs for SDP generation:
- pjmedia_endpt_create_base_sdp(): create blank SDP
 - pjmedia_endpt_create_audio_sdp(): create m=audio SDP media
 - pjmedia_endpt_create_video_sdp(): create m=video SDP media


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3450 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:28:24 +00:00
Benny Prijono 51a4a2924a Re #1208 (misc): bug in frame_size calculation in PJMEDIA_FSZ() causing results to be truncated
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3449 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:25:00 +00:00
Benny Prijono 8e0fa3cff9 Re #1208 (misc): bug in resample_port, the port info is accessed before it is initialized
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3448 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:23:48 +00:00
Benny Prijono 6c7e95ee59 Re #1182: renamed pjmedia_vid_stream to pjmedia_vid_dev_stream due to conflict with "the real" vid_stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3447 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:22:04 +00:00
Benny Prijono fe74aec894 Fixed #1207: Deprecation of pjmedia_session:
- add new APIs in stream so that app can use this directly instead of via session
 - moved some APIs from session to stream


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3446 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:20:35 +00:00
Benny Prijono 1641953c2d Re #1182: added the video stream to pjmedia Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3445 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:12:53 +00:00
Sauw Ming 8ad06c5f36 Re #1205: If refresh timer is already running, it will be cancelled and rescheduled with the new delay. This can be useful if app wants to correct the delay after it checks the timeout in the callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3444 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 10:49:59 +00:00
Sauw Ming 744e0db987 Misc (re #1175) (thanks to Seth Hinze for the patch):
* uri_test:
  Fixes a divide by zero error when the benchmark is run on a really fast machine.
* presence:
  Fixes a compiler warning about potential referencing of an uninitialized variable.
* echo_speex:
  Allow for compilation when PJMEDIA_HAS_SPEEX_AEC is not defined.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3443 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 05:09:29 +00:00
Sauw Ming d3c8e63df7 Closed #1206: Add pjmedia_stream API to get the last frame type retrieved from the jitter buffer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3442 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 05:07:01 +00:00
Sauw Ming 9b80d51c09 Fixed #1205: Configurable delay before registration refresh setting in pjsua_acc_config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3441 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 03:20:37 +00:00
Sauw Ming aa3c0d393f Re #1204:
* Update audio device's list after refreshing the device.
 * Fixed WMME macro.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3440 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 03:16:33 +00:00
Nanang Izzuddin 48687d7a6b Re #1204: Added audio device list refresh into auddemo.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3439 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-11 08:01:18 +00:00
Sauw Ming 98766c7947 Fixed #1204: Support for refreshing audio device list.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3438 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-11 06:57:24 +00:00
Nanang Izzuddin fea635a89b Implementation of re #1202 (PJLIB System Information API) on Symbian/S60 platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3437 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-08 06:30:34 +00:00
Sauw Ming c808952e7c Re #1202: Fixed compilation preprocessor for os_info so that it's more robust across various device and simulator SDKs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3436 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 10:53:24 +00:00
Nanang Izzuddin 678b2f82e0 Re #1182:
- Added remote frame-rate detection in to video stream.
 - Fixed bitrate settings in ffmpeg codec.
 - Fixed SDL dev to update internal SDL info when format changed.
 - Minor fixes/updates, e.g:
   - added cleanup steps, fixed logs, etc, in sample app simpleua.c and vid_streamutil.c
   - fixed/added docs of the new APIs in the jitter buffer.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3435 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 08:37:31 +00:00
Sauw Ming 056b4fdc35 Re #1202: Fixed compilation error in os_info_iphone.m on iPhoneSimulator
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3434 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 06:40:55 +00:00
Sauw Ming 0b7864e408 Re #1202: Fixed detection for iPhone simulator.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3433 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 02:44:57 +00:00
Nanang Izzuddin 9861070228 Re #1182:
- Fixed ffmpeg codec: decoding buffer size check (should not use assertion), reset output bit_info before decoding, removed unused code of auto resize when decoder output size changed.
 - Fixed bug in sdl_factory_default_param() of sdl_dev.c in device direction check.
 - Fixed compile errors sample app vid_streamutil.c of bad local variable definiton.
 - Updated sample app vid_streamutil.c default renderer size to 640 x 480.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3432 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 17:40:17 +00:00
Sauw Ming 4a20bc808a Re #1182:
* support for format modification after creating video port (currently for renderer with active role only).
 * support for format modification after opening SDL renderer.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3431 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 15:55:34 +00:00
Sauw Ming fe42f0c7c3 Re #3428: Fixed aconfigure for iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3430 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 10:42:11 +00:00
Sauw Ming c451f04917 Fix #1203: iPhone OS background mode detection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3429 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 07:47:37 +00:00
Sauw Ming 6a970a3e5a Implementation of re #1202 (PJLIB System Information API) on iPhone OS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3428 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 05:25:27 +00:00
Benny Prijono 155791d5e5 Misc (re #1175): fixed link error in OpenBSD 4.6 caused by lack of sched_get_priority_min() and sched_get_priority_max()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3427 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 23:58:14 +00:00
Benny Prijono 4df37e9070 Re #1202 (pjlib sysinfo): testing on OpenSolaris and added pjlib-test entry
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3426 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 22:19:23 +00:00
Nanang Izzuddin 235e1b4fa6 Re #1182:
- Renamed vstreamutil.c to vid_steamutil.c just for filename format consistency reason.
 - Updated sample app simpleua.c and vid_streamutil.c to sync with updated API, e.g: strip session usage, two media ports exported video streams for each dir.
 - Added vid_streamutil.c capability to be able to stream video file (involving transcoding when video codec used in the file different to the video stream codec), also updated AVI player and ffmpeg codecs to be able to read and decode XVID/MPEG4 codec.
 - Fixed bug wrong media type check in stream.c and vid_stream.c in creating stream info from SDP.
 - Minor update: docs, logs, app samples makefiles.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3425 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 18:59:47 +00:00
Benny Prijono de5c5edce9 Implementation of re #1202 (PJLIB System Information API) on Win32 and Windows mobile targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3424 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 08:28:48 +00:00
Benny Prijono e3e6580803 Initial implementation for re #1202 (PJILB System Information API) for Linux/Unix
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:44:19 +00:00
Benny Prijono 29531ae6bb Re #1174 (coreaudio_dev work): minor changes to replace "Error" message with "Warning" for non-fatal errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3422 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:18:33 +00:00
Benny Prijono 96d4dc6f53 Re #1175 (Misc fixes): fixed realclean and distclean target for Python makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3421 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:16:08 +00:00
Nanang Izzuddin a9c1cf45be Re #1182:
- Added video stream interface in vid_stream.h, the video stream will be able to handle different video formats in encoding and decoding direction.
 - Renamed video device stream class identifiers from 'pjmedia_vid_stream*' to 'pjmedia_vid_dev_stream*' as 'pjmedia_vid_stream' is used by video stream interface.
 - Added ffmpeg video capability to be able to parse SDP format param for H263 and also decide video format for encoding direction based on remote preference and local format-capability setting.
 - Added some new APIs in jitter buffer for handling video stream: pjmedia_jbuf_put_frame3(), pjmedia_jbuf_get_frame3(), pjmedia_jbuf_peek_frame(), and pjmedia_jbuf_remove_frame().
 - Moved pjmedia_stream_info_from_sdp() from session to stream




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3420 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 07:47:55 +00:00
Nanang Izzuddin c85a00d1ca Re #1186:
- Added API pjmedia_sdp_conn_cmp() to compare SDP connection.
 - Added internal API pjmedia_stream_info_parse_fmtp() to parse SDP format parameter of specified payload as a helper function for generating stream info from SDP.
 - Modified pjmedia_endpt_create_sdp() to be able to generate SDP media line for video.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3419 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 07:16:31 +00:00
Nanang Izzuddin ecaaec06e0 Re #1182: Reverted back video part in stream.h/c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3418 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 05:14:34 +00:00
Nanang Izzuddin b3756b38a2 Re #1200: updated IPP codecs to support IPP v7.0 on MSVC, only include "ippsr.lib" in auto link when IPP major version is 6 or below.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3417 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-22 07:31:01 +00:00
Nanang Izzuddin d8cc3e7572 Fix #1199:
- Modified G722 frame time to 10ms (was 20ms) and frame per packet to 2 (was 1).
 - Updated the detection mechanism of remote G722 frame-length in the stream to be flexible to any G722 frame length setting (was assumed to be always 20ms).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3416 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-18 09:34:28 +00:00
Nanang Izzuddin 6cf25ceac8 Misc (re #1175): fix sample app pcaputil.c bug, it always fails in reading the first/reference packet when the codec is not PCMU (default payload type was hardcoded to zero/PCMU).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3415 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-17 15:59:52 +00:00
Nanang Izzuddin 462fb1dd12 Misc (re #1175): fixed possible division-by-zero bug when receiving problematic G722 payloads (e.g: sized less than 160 bytes) and remote clock-rate/timestamp-span detection is active (PJMEDIA_HANDLE_G722_MPEG_BUG is set). Thanks Erik Waling for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3414 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-17 09:08:11 +00:00
Sauw Ming aa6fd41de9 Re #1174: fixed crash when pjsua is restarted, causing inClientData to be invalid since AudioSessionInitialize can only be called once.
Re #1175: cleaning up interruption and audio route handling in coreaudio for iOS. In the case of interruption, there is no need to reinstantiate the audio unit (a simple restart will do), while for audio route change, nothing needs to be done.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3413 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-15 05:33:23 +00:00
Sauw Ming 5c2f6da4ec Re #1161: Support for adding custom presence subscription headers.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3412 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-11 07:39:14 +00:00
Sauw Ming 5b0f2308ee Re #1175: Modified default core audio unit used on iOS from VPIO to RemoteIO. To use VPIO, application needs to specify a nonzero value for the PJMEDIA_AUD_DEV_CAP_EC capability.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3411 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-10 06:41:39 +00:00
Sauw Ming f3cfb88bf0 Re #1192: Fixes stereo support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3410 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-31 11:27:48 +00:00
Benny Prijono a5edbd9d28 Re #1197: also increase MAX_IMMEDIATE_PACKET from 10 to 50 to make it more resilient against errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3409 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 07:35:24 +00:00
Benny Prijono a61c43d571 Fixed #1197: WSAECONNRESET errors on Windows 2000 or 2003 may cause UDP transport to stop working
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3408 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 07:15:22 +00:00
Sauw Ming 9ef51380cf Re #597: Modify buffer padding code for EOF event (thanks to Thomas Johnson).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3407 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 01:30:37 +00:00
Sauw Ming 3e7630a839 Re #3398: Fixes assertion in the resample procedure and callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3406 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-20 03:32:14 +00:00
Sauw Ming 0f35826415 Fixes #597: Error reading WAV files when there are extra chunks after DATA chunk.
Wav player will now just play data chunks in wav files and ignore others.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3405 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-19 10:23:58 +00:00
Sauw Ming 4fc590fd4e Fix #1195: assertion during thread registration in coreaudio and portaudio's input/output callbacks on Mac OS X and #1196: using system's default audio input/output device instead of first available device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3404 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-13 16:42:21 +00:00
Sauw Ming 1e376aa799 As compared to iOS SDK 3.x, in iOS SDK 4.x, __IPHONE_OS_VERSION_MIN_REQUIRED is defined only when -miphoneos-version-min is used (see the SDK's AvailabilityInternal.h). This causes coreaudio_dev to be compiled using RemoteIO (instead of VPIO) and without Bluetooth support. This revision fixes #1194.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3403 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-04 03:41:43 +00:00
Sauw Ming 8e799128a1 Re #1184: Adding pjmedia_clock_src for the purpose of audio and video synchronization and also to provide synchronization mechanism between two medias in general.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3402 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-30 16:31:16 +00:00
Sauw Ming b1b17d221e Fixed #1184:
* Move the AVI playback from pjmedia-test to new aviplay.c sample application
 * Take the input file from cmdline
 * Synchronize audio and video
 * Remove all codecs related hardcodes from the file 

Re #1193: (no. 6: duplicate fps and frame_rate in pjmedia_format and pjmedia_vid_param)
 * Remove the frame_rate in pjmedia_vid_param
 * Use pjmedia_format's fps in videoport, sdl_dev, and colorbar_dev
 * Prevent overflow in ptime calculation from frame_rate



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3401 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-20 11:02:48 +00:00
Sauw Ming c7ec991f65 Re #1174:
Fixed AudioSession services error handling in factory initialization.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3400 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-19 05:14:22 +00:00
Sauw Ming ab494302d8 Re #1183:
* Add PJMEDA_VID_DEV_CAP_OUTPUT_WINDOW capability to ios_dev to allow application to provide their own window for the renderer to display the video.
 * Perform image setting function in the main thread.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3399 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-17 13:17:23 +00:00
Sauw Ming 4a59e2a02b Fixed #1174, #1191, #1192
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3398 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-17 07:10:13 +00:00
Benny Prijono b5609b2292 Fixed #1190: Remote dialog info is not updated if 100 (Trying) response contains To tag parameter (thanks Marcus Froeschl for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3397 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-15 08:11:28 +00:00
Nanang Izzuddin 1fe6d6c0ab Fix #1188:
- Fixed jitter buffer progressive discard by returning 'missing' frame after discarded frame(s) so the PLC will be invoked to align the audio signal.
 - Modified conditions in jitter buffer test data for this fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3396 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-14 20:39:47 +00:00
Sauw Ming 6e6c215f70 Fixed #1183
* QT capture device for Mac
 * iOS device for iOS (capture device only works for iOS 4.0 or above)
 * Add NSAutoReleasePool for sdl_dev (Mac)
 * Add NSAutoReleasePool for vid_dev_test (Mac)
 * build system for compilation of Obj-C files (.m)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3395 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-14 13:03:10 +00:00
Nanang Izzuddin e43ee729d4 Re #1176: fixed build config for MSVC2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3394 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 20:55:13 +00:00
Benny Prijono 69b1f82cae Re #1176: fixed link error in GNU build system
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3393 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:33:01 +00:00
Benny Prijono c45d951901 Migration of current video works from private repository to this repository. This closed #1176
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3392 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:04:30 +00:00
Benny Prijono 7f5aa6f127 Created 2.0-dev branch for 2.0 development.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3391 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 10:52:53 +00:00
Benny Prijono 4034240ebd Changed version to 1.8.10-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3390 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 08:50:57 +00:00
Benny Prijono 3913b7e471 Changed version to 1.8.10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3388 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 06:26:30 +00:00
Benny Prijono ae6f32d32e Fixed #1160: Option to bypass RTP payload type verification in the stream (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3387 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-06 04:25:44 +00:00
Sauw Ming 5321ca7759 Misc (re #1151): Fixed crash in coreaudio_dev when there is no call during an interruption.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3386 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-05 14:03:31 +00:00
Benny Prijono 9d33c95716 Misc (re #1151): respond incoming re-INVITE with 491 instead of 500 if we are waiting for response for our outgoing re-INVITE. If we are currently processing another incoming re-INVITE, then respond with 500, as it is now
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3385 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 11:21:01 +00:00
Nanang Izzuddin fe30a53008 Re #1165: fixed SRTP transport to not update the SRTP activation flag, i.e: bypass_srtp, in transport_encode_sdp(), as it shouldn't change the media session states.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3384 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:56:27 +00:00
Benny Prijono 0324ba5b56 Fixed #1170 (Assertion when receiving updated SDP offer with all media lines removed):
- pjsua_media.c checks if audio media is present in the offer; if not, do not set any answer
 - sip_inv.c checks if app has supplied an answer after on_rx_offer() callback is called, and returnd 488 (Not Acceptable) if not (previously, it will return 200/OK without SDP!)
 - added a SIPp scenario file to reproduce this


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3383 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:41:46 +00:00
Benny Prijono 964bbf6f0a Re #1166 (SDP offer/answer glare): added SIPp scenario file to reproduce this
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3382 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:13:46 +00:00
Benny Prijono 1ec65e83ae Fixed #1166: Detection of offer/answer glare condition with re-INVITE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3381 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:08:59 +00:00
Nanang Izzuddin 5d86b7b79b Fix #1171, fixed issues in pjmedia_codec_mgr_set_default_param():
- updated the releasing of the old pool to be done after the new codec param is copied
 - fixed the double dec_fmtp copy loop, one of them should be enc_fmtp copy loop instead




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3380 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 06:12:19 +00:00
Nanang Izzuddin c155bb96e0 Misc (re #1151): fixed bug in pjmedia_session_enum_streams(), used wrong pointer for the stream info source.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3379 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 04:13:57 +00:00
Nanang Izzuddin 6d0e23c6f3 Misc (re #1151): Fixed pjsip_multipart_create() in initializing media type, should use pjsip_media_type_init() (thanks Dan Price for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3378 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 03:46:11 +00:00
Nanang Izzuddin 5fc7fcfb3b Misc (re #1151): fixed pjsua_acc_config_dup(), some fields, i.e: contact_params, contact_uri_params, and auth_pref, were not duplicated properly (thanks Roman Grachev for the report and the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3377 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01 08:53:52 +00:00
Nanang Izzuddin 3150d8bc2c Fix #1165:
- Fixed pjsua_media_channel_create_sdp() to re-calculate audio index of the remote offer, instead of using existing audio index calculated by pjsua_media_channel_init(), as for subsequent SDP offer/answer, pjsua_media_channel_init() may not be called.
 - Fixed SRTP transport to be able to switch SRTP status from active to inactive/by-passed and vice versa.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3376 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01 08:20:28 +00:00
Benny Prijono 789794904e Fixed #1164: Possible crash in PUBLISH session if network connectivity is lost between two requests (thanks Nikolay Popok for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3375 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-29 14:49:37 +00:00
Nanang Izzuddin ec9190096e Fix #1163:
- Fixed lock codec to always be done after successful media update, and pend the lock codec until call state CONFIRMED if media update is done in call state EARLY but remote does not support UPDATE method.
 - Added additional checks in lock_codec() and perform_lock_codec(), e.g: skip locking codec when media deactivated.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3374 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-25 09:27:06 +00:00
Benny Prijono 5fa556e5f1 Misc (re #1151): support for sched_get_priority_max/min in OpenBSD (thanks David Coppa for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3373 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-18 07:14:07 +00:00
Benny Prijono 434baa4fc6 Re #1020 (Support for SIP outbound and Path extension (RFC 5626)): added pjsua --outb-rid option to set outbound reg-id parameter for the account
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3372 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-18 05:15:04 +00:00
Benny Prijono 0249327c6b Fixed #1159: UPDATE is sent to lock codec even though call is being disconnected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3371 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:15:04 +00:00
Benny Prijono 3f4b8d7a36 Re #1151 (misc): also enable plain UDP SIP transport when enabling IPv6, since many UA will use IPv4 in their Contacts (keyword: sipit27)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3370 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:05:10 +00:00
Benny Prijono ae51ee0528 Fixed #1158: Possible wrong multiplexing of STUN traffic inside TURN Data Indication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3369 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:00:17 +00:00
Benny Prijono e49e620d77 Re #1020: fixed pjsua_acc.c, wrong allocation length for outbound contact.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3368 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16 07:01:25 +00:00
Benny Prijono 2562b75e03 re #1020 (SIP outbound): remove sip.instance and reg-id parameters from the Contact when re-registering if the server does not support SIP outbound
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3367 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16 06:01:38 +00:00
Benny Prijono b54719ff91 Implemented SIP outbound (closed #1020)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3366 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16 03:07:46 +00:00
Benny Prijono 70749d787a Re #1151 (misc fixes): fixed error in pjsua application when handling malformed URI in sending arbitrary request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3365 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-15 22:55:21 +00:00
Nanang Izzuddin 34fa0ec0d9 Fix #1157: Fixed Symbian SSL socket to re-align the write (circular) buffer only when all pending write requests are completed, i.e: inside the write completion callback and when the buffer is empty.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3364 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-12 07:42:58 +00:00
Benny Prijono 1a1f51e4ac Fixed #1156: New option to ignore bad NOTIFY presence message body (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3363 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-10 12:13:46 +00:00
Benny Prijono fb1d2ddb8a Misc (re #1151): fixed the compile time switch to use iLBC codec on iPhone
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3362 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-03 07:33:07 +00:00
Benny Prijono c84ba48757 Fixed #1155 (Run-time option to disable the use of "rport" in outgoing requests (thanks Marcus Froeschl for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3361 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-03 06:48:58 +00:00
Benny Prijono 60dc3faebc Fixed #1154 (Run-time option to disable telephone-event in outgoing SDP offer (thanks Marcus Froeschl for the suggestion))
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3360 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-03 06:46:27 +00:00
Nanang Izzuddin 34315ceb93 Misc (re #1151): fixed jitter buffer state 'jb_max_burst' initialization, MAX_BURST_MSEC should be converted to number-of-frame unit (thanks Zhefeng Du for the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3359 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-29 03:27:17 +00:00
Nanang Izzuddin 2f75386b4b Fix #1153: Fixed missing header dependency in pjmedia-codec/types.h, it should include pjmedia/codec.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3358 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-28 08:31:42 +00:00
Benny Prijono 4b9089ef44 Misc (re #1151): fixed error in make dep execution if python module is included in compilation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3357 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-26 23:57:22 +00:00
Benny Prijono 91430b2dc4 Fixed #1152 (The base64 decoder should ignore whitespaces in the input). In fact, the base64 decoder now will silently ignore/skip any bad characters.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3356 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-26 23:53:28 +00:00
Benny Prijono eb7bd1d6f2 Changed version to 1.8.5-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3355 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-21 05:33:03 +00:00
Benny Prijono 6640ad1fe5 Changed version to 1.8.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3353 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-21 03:03:42 +00:00
Benny Prijono cae95fc56f Misc (re #1134): fixed compilation error in python module due to last change in session timer field from require_timer to use_timer. Thanks Beau Gunderson for the patch!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3352 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-21 02:22:41 +00:00
Benny Prijono ad27eaddf0 Misc (re #1134): added the ability to add python module build with the top level build, by adding pjsip-apps/src/python into EXTRA_DIRS in user.mak. Also changed the make command in python module to just build the module without installing since installing needs root permission
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3351 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-21 02:21:37 +00:00
Benny Prijono 027d01819b Misc (re #1134): enable doxygen documentation for pj_actievsock_set_iphone_os_bg()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3350 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-20 09:54:45 +00:00
Benny Prijono 1e60155980 Fixed #1149 (Crash when holding the call after receiving SDP answer with multiple codecs (thanks Cyril GY for the report)):
- avoid using pre-created SDP, but rather use timer and create SDP right when the UPDATE/re-INVITE is about to be sent, to avoid the use of stale pool
 - also fixed bug in the old code when the lock codec feature is not activated after the call is confirmed


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3349 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-20 05:31:08 +00:00
Nanang Izzuddin d1ac4e2fb5 Re #1140, cleaned up the mutex usages in SRTP transport:
- using mutex in accessing application callback pointers
 - releasing mutex before calling application callbacks to avoid deadlock
 - refine the synchronization of backend/libsrtp states




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3348 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-18 04:23:25 +00:00
Nanang Izzuddin 7d242bccbb Fixed #1148:
- Added check in processing answer, if media offer port is zero, just skip negotiation process.
 - Added SIPp test scenario.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3347 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-16 04:40:01 +00:00
Benny Prijono f66dc1c8e7 Misc (re #1134): fixed failed unit tests due to changes in DNS resolver code in r3344
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3346 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-14 10:56:02 +00:00
Benny Prijono 9a2b19f61b Misc (re #1134): changed dynamic payload type starting value for internal codecs to 96 (from 101) as we are running out of constants. Also added more comments to clarify the restriction on the value, i.e. it must be less than 128 (thanks Robbie Hanson for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3345 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-14 08:30:57 +00:00
Benny Prijono dc1c15a2bc Misc (re #1134): fixed failure in resolving DNS A resolution if the answer contains more than one CNAME redirection before an A record is found (thanks Régis Montoya for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3344 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-14 07:22:04 +00:00
Benny Prijono 9f1d73eea1 Misc (re #1134): added the missing ARCH environment variable in CPP command in configure-iphone script (thanks MrGecko for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3343 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-13 23:57:11 +00:00
Benny Prijono 82defdd231 Fixed #1147 (Bug in parsing multipart message bodies (thanks Johan Lantz for the report)): leave the quote in parameter values and let the multipart code handle this instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3342 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-13 11:17:51 +00:00
Benny Prijono bb0348ed76 Misc (Re #1134): do not allow subscription state callback to be called with NULL event parameter as application may not expect this
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3341 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-13 11:13:22 +00:00
Benny Prijono fe937cb814 Fixed #1147: Bug in parsing multipart message bodies (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3340 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-13 09:41:37 +00:00
Benny Prijono 6349989e20 Closed #1144: New presence callback to report subscription state (thanks Johan Lantz for the suggestion):
- added on_buddy_evsub_state() callback
 - added sample implementation in pjsua_app.c


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3339 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12 12:45:15 +00:00
Benny Prijono 2e4d89bc5f Re #1146: minor fix in test file comments
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3338 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12 11:43:14 +00:00
Benny Prijono f279c0937d Closed #1146: support for multipart message bodies in incoming NOTIFY requests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3337 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12 11:35:55 +00:00
Sauw Ming 3e310ec787 Fix #1145: API to enable/disable support for iOS BG feature during runtime
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3336 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-11 10:59:37 +00:00
Sauw Ming 5c88404583 Misc (re #1134): Fixed memory leak after getting audio route capability in coreaudio_dev
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3335 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-10 15:51:08 +00:00
Nanang Izzuddin 1e952a88ad Fix #1143:
- Fixed no audio bug when pjsua with SRTP optional-with-duplicated-offer calls pjsua with SRTP disabled, by updating active media index after SDP negotiation done.
 - Fixed bug in generating SDP, pjsua_media_channel_create_sdp(), by making sure all media in the SDP candidate are aligned with current active SDP before calling pjmedia_transport_encode_sdp().
 - Fixed bug in modifying SDP for call hold, the media index to be modified was hardcoded to 0, should be active media index.
 - Added python tests for calls with SRTP optional-with-duplicated-offer.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3334 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-05 16:32:04 +00:00
Benny Prijono 8ef546c3fb Another fix for authentication in HTTP client (re #1136):
- missing opaque parameter in the response
 - also replaced "\n" with "\r\n"


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3333 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-04 01:11:54 +00:00
Benny Prijono 064d235023 Re #1136 (Basic and digest authentication in the HTTP client): fixed error in parsing URL if the path contains at ("@") character
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3332 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-01 06:43:17 +00:00
Benny Prijono 89e5261fc6 Misc (re #1134): added Supported header in outgoing SUBSCRIBE request. Although RFC 3265 says it is only optional, some downstream RFC may bring this requirement to SHOULD strength - e.g. RFC 5373 (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3331 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-01 04:09:08 +00:00
Benny Prijono dd63b997df Closed #1142 (Account based configuration to specify if "c=0.0.0.0" method should be used when putting call on hold):
- use PJSUA_CALL_HOLD_TYPE_DEFAULT to specify default global call hold type
 - use pjsua_acc_config.call_hold_type to specify call hold type for the account
 - call hold type can also be set on per call basis by changing the call_hold_type in the call structure (requires inclusion of <pjsua-lib/pjsua_internal.h>

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3330 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-01 02:03:42 +00:00
Benny Prijono 202837d6d3 Closed #1141: Compile and run-time setting to allow printing of port number in URI in To and From header (thanks Marcus Froeschl for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3329 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-01 00:24:23 +00:00
Benny Prijono 1768adeffd Closed #1121 (Deadlock in transaction code when hanging up calls): fixed the race condition when setting up transaction timeout
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3328 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-30 23:38:20 +00:00
Benny Prijono b8aeb9d297 Re #1134 (misc fixes): fixed various doxygen warnings, as well as added overview section in pjmedia documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3327 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-30 04:23:27 +00:00
Nanang Izzuddin 60e8aa911d Close #1137: added field reg_hdr_list into pjsua_acc_config to specify custom headers for REGISTER requests of the account.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3326 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 10:48:48 +00:00
Nanang Izzuddin f493e4d684 Fix #1135: added RTP padding checks and RTP payload length adjustment according to padding length.
Payload padding in outgoing RTP investigation results:
 - the RTP does not specify RTP payload alignment.
 - most codecs also do not specify RTP payload alignment, usually only octet-alignment is specified and this seems to be done.
 - SRTP, RFC3711 states:
   - None of the pre-defined SRTP encryption transforms uses any padding; for these, the RTP and SRTP payload sizes match exactly.
   - Message authentication codes define their own padding.
   - Encryption transforms that use padding are vulnerable to subtle attacks, especially when message authentication is not used.

So, currently payload padding in outgoing RTP is not necessary.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3325 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 08:26:51 +00:00
Benny Prijono 0ef4e19a9a Fixed #1131: Callee disconnects call without sending BYE if ACK is not received (thanks Montevecchi Massimiliano and Klaus Darilion for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3324 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 08:03:23 +00:00
Benny Prijono c754578e5d Closed #1139 (Support for tel: URI in PJSUA-LIB):
- added new PJSUA API: pjsua_verify_url() which can be used for tel: URI
 - modified and tested according to spec
 - added new PJSIP error code, PJSIP_ENOROUTESET, to indicate that route set is needed to send to tel: URI
 - added couple of unit tests (we can't cover the whole tel: URI scenario yet)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3323 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 07:43:18 +00:00
Nanang Izzuddin 4ea1bcc610 Close #1138:
- Added new pjsua registration status callback on_reg_state2(), it includes the whole info from the lower layer registration callback pjsip_regc_cb().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3322 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 04:57:01 +00:00
Benny Prijono 00f8827827 Implemented and closed #1136: added HTTP authentication support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3321 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-27 08:35:08 +00:00
Benny Prijono 3ade00659b Misc (re #1134): fixed wrong OpenBSD thread priority max value (thanks David Coppa for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3320 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-24 07:49:32 +00:00
Benny Prijono 0282727447 Misc (re #1134): fixed error in Makefile target for generating doxygen documentation when WWWDIR is specified
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3319 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-23 22:46:11 +00:00
Nanang Izzuddin 4d32338063 Misc (re #1134): fixed default value of pjsua app param "--snd-auto-close" in pjsua app help message (was -1, should be 1, see r2493).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3318 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 17:07:39 +00:00
Sauw Ming 30132a324b Re #1134: for iOS4, remove unnecessary wrapping of sockets during creation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3317 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 13:21:40 +00:00
Sauw Ming 47b77a8918 Fixed #1130
Since the problem may not be iOS4 specific, a general approach is adopted to fix the problem.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3316 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 13:11:11 +00:00
Nanang Izzuddin 01f52c4630 Close #1133: added processing to remote SDP attribute "ptime".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3315 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 08:39:03 +00:00
Benny Prijono 3323b0e012 Fixed #1132: Assertion when (re)starting PJLIB on different thread
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3314 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 07:45:26 +00:00
Nanang Izzuddin 5e39a2b9d0 Closed #1129:
- Added run-time configuration for activating/deactivating stream keep-alive (non-codec-VAD mechanism), also added this config to account settings.
 - Fixed bug wrong session info pointer "si" in pjsua_media_channel_update() when call audio index is not zero.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3313 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-20 06:13:02 +00:00
Sauw Ming 5396cface5 Closed #1128: ipjsua - add support for iPad
Add support for iPad as one universal application.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3312 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-15 12:29:04 +00:00
Benny Prijono d9a7c8a9fa Fix #1121 (Deadlock in transaction code when hanging up calls (thanks Dennis Struble for the report))
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3311 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-15 07:42:14 +00:00
Perry Ismangil 1c17a132e6 Changed version to 1.8-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3310 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-09 06:06:05 +00:00
Perry Ismangil 17667b94b4 Changed version to 1.8
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3308 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-08 17:45:27 +00:00
Nanang Izzuddin 3387a8e3c1 Re #1120: Fixed session timer python test scripts, pjsua app param --use-timer is requiring param value now.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3307 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-08 05:38:49 +00:00
Nanang Izzuddin 160a49c9cc Misc (re #1110):
- Added sound device echo test into pjsystest.
 - Renamed pjsystest log file, from PJSYSTEST.LOG to PJSYSTEST.TXT, as commonly built-in text editors recognize TXT ext more than LOG ext.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3306 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07 10:00:49 +00:00
Nanang Izzuddin 742ef4bd30 Re #1120:
- Added enum pjsua_sip_timer_use for session timer usage types, containing: inactive, optional, required, always
 - Replaced require_timer (boolean) with above enum in global and account config setting.
 - Updated pjsua app --use-timer option accordingly.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3305 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07 09:36:15 +00:00
Sauw Ming 844c1c96d1 Fixed #1117: Configurable PJSUA-LIB lock timeout
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3304 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07 05:12:02 +00:00
Sauw Ming 48f6dbfce2 Fixed #1118: Add last error code to PJSUA-LIB account info structure
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3303 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07 05:10:25 +00:00
Benny Prijono ae6d39e980 Fixed ticket:1119: Crash if sending UPDATE fails in session timer module because network connectivity is lost (thanks Robbie Hanson for the fix!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3302 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-06 12:47:53 +00:00
Benny Prijono 7386879c0d Fixed #1116 (Bug in regenerating elements of some headers when incoming request contains escaped characters (thanks Ferguen Adel for the report)):
- Fixed the printing part of Via "branch" parameter and To/From "tag" parameter, since these parameters are important for transaction/dialog identification
 - Note that if the escaping sequence describes a character that otherwise is a valid token, that token would still be printed unescaped, hence the problem would still persist. But sender really shouldn't send this kind of escaped sequence as it really is asking for trouble.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3301 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-31 16:46:13 +00:00
Benny Prijono 1f3c1b0771 More on automated tests (re ticket:1111): work on Visual Studio target, and added ability to disable tests in configure.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3300 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-27 13:27:55 +00:00
Sauw Ming be3771a637 Closed ticket #1107: iOS4 background feature
* pjlib:
  * add support for activesock TCP to work in background mode.
  * add feature in ioqueue to recreate closed UDP sockets.
 * pjsip-apps:
  * ipjsua: add support for iPhone OS 4 background mode
  * ipjsystest: add support for iPhone OS 4 background mode



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3299 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-27 06:46:29 +00:00
Benny Prijono f50194620e Fixed #1108: deadlock in DNS resolver (thanks Bogdan Krakowski for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3298 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-27 03:19:00 +00:00
Benny Prijono dc4cccad1d More on automated tests (re ticket:1111): added support for multiple Nokia/Symbian SDK installed in one system
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3297 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-26 08:17:01 +00:00
Benny Prijono 6efbf41268 Misc (re #1110): undo accidental checkin of run_continuous.py in previous commit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3296 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-25 12:57:53 +00:00
Benny Prijono 719e574c09 Misc (re #1110): force SVN eol-style to LF for files which are to be manipulated by the configure script, or otherwise the configure script on msys (mingw) will fail to update them
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3295 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-25 12:51:29 +00:00
Benny Prijono c7d28601b6 re ticket:1111 (more on automated test): added symbian target in prepare.xml@
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3294 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-25 03:53:52 +00:00
Benny Prijono e00f82225c re #1111 (more on automated tests): added prepare.xml scenario to rebuild the test scripts before performing the tests to make sure that they are up to date
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3293 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-25 02:43:56 +00:00
Nanang Izzuddin 5e1579684b Fix #1114:
- Fixed bytes_per_frame calculation in stream port.
 - Fixed sample streamutil.c to use codec info/param for codec bandwidth calculation (was using bytes_per_frame info of stream port).
 - Doc fix for bytes_per_frame field in pjmedia_port_info.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3292 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-24 10:45:01 +00:00
Benny Prijono a991260166 Re #1111 (more on automated tests): another fix on run_continuous.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3291 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-23 15:36:04 +00:00
Benny Prijono 457e18e0ba Re #1111 (more on automate test): small fix on the delay in run_continuous.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3290 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-23 15:34:19 +00:00
Benny Prijono a10b3ddde6 re #1111 (more on automated tests): added delay option in run_continuous.py to prevent more than one scripts from running simultaneously on a single host
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3289 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-23 09:16:03 +00:00
Nanang Izzuddin b99def535c Fix #1112: fixed IPP G.729 codec to update the application regarding VAD status, disabled/off, after receiving 'fmtp:18 annexb=no' in the SDP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3288 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 15:08:30 +00:00
Nanang Izzuddin 878eda4fd6 Automated test (re #1111): fixed test scenario scripts-recvfrom/301_timer_good_retry_after_422.py to use separate transaction for ACK (pattern matching was done to ACK, instead of INVITE).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3287 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 14:30:17 +00:00
Benny Prijono 777cc68e0f Automated test (re #1111): decrease Speex PESQ threshold as it is not always able to achieve that, possibly depending on the host activity
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3286 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 14:30:15 +00:00
Benny Prijono 1fdc07ce88 Automated test (re #1111): workaround for failed Speex PESQ test caused by progressive discard in the jitter buffer: disable the VAD for the Speex tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3285 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 11:41:30 +00:00
Benny Prijono 3332e7cbc9 More automated test (re #1111): added simple recvfrom test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3284 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 07:38:48 +00:00
Benny Prijono 5ba2a9b02d Misc (re #1110): fixed bug in the python unit test that caused tests to run for much longer than needed because it unnecessarily waits for incoming message until timeout occurs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3283 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 07:37:29 +00:00
Benny Prijono 4b172709a0 Added README.txt in tests/automated directory (re #1111)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3282 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 04:48:18 +00:00
Benny Prijono 1de150f130 Automated test (re #1111): modified configure.py to detect GNU host instead of always presenting vs (visual studio) as the default host
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3281 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 04:16:04 +00:00
Benny Prijono 602d27baca Automated test (re #1111): added iPhone test scenario XML file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3280 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 03:59:36 +00:00
Benny Prijono 949d7dc109 Misc (re #1110): modified config_site_sample.h to enable CoreAudio's iLBC codec by default for iPhone target
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3279 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 03:57:36 +00:00
Benny Prijono 20c26f0598 Automated test (re #1111): modified run_continuous.py script to also do Nightly build every day at 00:00 GMT
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3278 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 03:18:24 +00:00
Benny Prijono a72cdcaefa Automated testing (re #1111): changed continuous monitoring interval from 1 to 5 minutes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3277 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-17 14:53:09 +00:00
Benny Prijono 6272b1a5fd Automated test (re #1111): small fix for make file based test scenarios
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3276 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-17 12:31:56 +00:00
Benny Prijono 896be297d4 Misc (re #1110): error in setting the IPP architecture in the configure script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3275 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-17 12:16:46 +00:00
Benny Prijono b7b8844cb8 Dummy commit (re #1109)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3274 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-17 10:32:33 +00:00
Benny Prijono c8a8579610 Another dummy error commit (re #1109)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3273 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-17 01:40:43 +00:00
Benny Prijono ab61e98c7b Another dummy commit (re #1110)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3272 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-16 13:04:30 +00:00
Benny Prijono 4423d96dce Dummy error commit (re #1110)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3271 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-16 12:53:43 +00:00
Benny Prijono 4adead2f5d Dummy commit (re #1110)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3270 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-16 12:33:52 +00:00
Benny Prijono a6b3e7cfb5 Automated test (re: #1111): added script to run the test continuously
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3269 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-16 12:18:20 +00:00
Benny Prijono eefb8dab58 Automated testing (re #1111): added -Wno-unused-label in CFLAGS for automated test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3268 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-16 05:58:54 +00:00
Nanang Izzuddin e7ae2dbe26 Changed version to 1.7-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3267 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 12:53:40 +00:00
Nanang Izzuddin 50a7e8e910 Changed version to 1.7
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3265 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 07:46:56 +00:00
Nanang Izzuddin 4fdd3fb555 Misc (re #1068): set sip_transport_tls_ossl.c to be excluded from build on Windows Mobile build configs (obsoleted by sip_transport_tls.c).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3264 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 07:26:13 +00:00
Nanang Izzuddin fef5a3f95d Re #1106: Reverted back the IPP codec APIs pjmedia_codec_ipp_set/get_config() as currently to set PCM signal level adjustment can be done using the existing G722.1 API pjmedia_codec_g7221_set_pcm_shift().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3263 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 07:18:08 +00:00
Benny Prijono 2958061f92 Misc (re #1068): fixed various compilation warnings with Visual Studio 6 and 2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3262 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 06:03:47 +00:00
Nanang Izzuddin db5994bb44 Fix #1106:
- Added PCM signal adjustment in IPP G722.1 implementation. The default setting is configurable via (the existing compile-time config) PJMEDIA_G7221_DEFAULT_PCM_SHIFT.
 - Added new APIs to get and set IPP codecs settings: pjmedia_codec_ipp_set/get_config(). At run-time, the G722.1 PCM signal adjustment setting can be set using these functions.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3261 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-10 15:06:40 +00:00
Benny Prijono 0bf5b98509 Misc (re #1068): do not add To tag to the SIP response if the request already has one (thanks Rafael Maia for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3260 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-09 14:24:36 +00:00
Nanang Izzuddin 4cfda67104 Misc (re #1068): fix python self-test module 'mod_recvfrom.py':
- increased message waiting timeout to 30s (was 10s)
 - added call_id check in retransmision detection



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3259 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-09 07:31:34 +00:00
Sauw Ming 9b206052c1 Misc fix (re #1068): Use default setting for path length (PJ_MAXPATH) on iPhone to accommodate long path name when running on the simulator.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3258 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-09 06:40:38 +00:00
Benny Prijono d62947c23e Misc (re #1068): fixed couple of problems with http client unit test:
- crash because server is let running
 - SIGPIPE on Linux in the test server code


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3257 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 08:40:55 +00:00
Nanang Izzuddin a3aeb95b0c Misc (re #1068): temporary fix address parsing in SDP connection info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3256 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 08:26:31 +00:00
Nanang Izzuddin d1f054e473 Misc (re #1068): fix compile errors/warnings on Symbian S60 5th ed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3255 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 07:18:08 +00:00
Nanang Izzuddin fbe1d222c1 Misc (re #1068): fix compile error missing explicit casting for malloc in pjlib-test/ssl_sock.c on Symbian S60 5th ed (compiled as C++?).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3254 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 04:20:48 +00:00
Nanang Izzuddin 9608db413f Misc (re #1068): fix codec selection menu in symbian_ua app to hide disabled passthrough codecs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3253 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 03:24:15 +00:00
Benny Prijono ceb8d3d51a Misc (re #1068): fix the misleading alien socket error from the SIP python self-test module
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3252 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 01:23:55 +00:00
Nanang Izzuddin 31facfc387 Misc (re #1068), updates in python test:
- increased receive buffer size in python test driver function inc_sip.Dialog.wait_msg_from(), the previous buffer size (2048) caused socket exception in receiving large SIP packet.
 - updated verification regex in scripts-sendto/330_srtp_prefer_rtp_savp.py (related to changes in #668: omitting media attribute in disabled/rejected media).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3251 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 01:03:33 +00:00
Nanang Izzuddin 20c503ae7a Re #1072: fixed buffer overflow bugs introduced by r3202.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3250 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 10:41:48 +00:00
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
Nanang Izzuddin 57ab972595 Misc (re #1068): added pjsua win32 executable name list in python test driver (to look up default pjsua executable).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3248 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 07:24:40 +00:00
Benny Prijono 689ba8ab78 Misc (Re #1068): added ability to specify executable suffix, by declaring HOST_EXE in user.mak. Useful for cross compiling Mingw executables on Linux. Thanks Atik Khan for the suggestion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3247 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 07:04:26 +00:00
Benny Prijono fe3bf0e7cd Re #1068 (misc): fixed error in cross compiling Mingw on a Linux box (thanks Atik Khan for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3246 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 06:27:20 +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 c7c91832d3 Re #1070 (multipart): modified Visual Studio projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3244 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01 13:48:49 +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 ad56eb8ee9 Re #1070 (support for multipart bodies): added new pjsip_param_cmp() API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3242 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01 09:26:34 +00:00
Benny Prijono 1e5a08b1d1 Re #1070 (support for multipart bodies): modified the param field of pjsip_media_type from a simple string to pjsip_param, to support a more complex use of this field
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3241 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01 09:24:58 +00:00
Sauw Ming c28ecd0fb1 Re #1104: Fixed iPhone OS version detection in os_auto.h.in
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3240 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-23 04:27:32 +00:00
Nanang Izzuddin 78bec1ae8c Re #1103:
- Added (back) raw jitter statistics into RTCP statistics, with the new name "rx_raw_jitter".
 - Added IPDV statistics into RTCP statistics.
 - Added new compile-time settings to enable/disable raw jitter and IPDV statistics.
 - Updated call dump in pjsua-lib.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3239 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-15 14:45:47 +00:00
Sauw Ming d39818b18c Fixed #1104: Append ".local" to the system's hostname in IOS 4.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3238 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-15 13:32:11 +00:00
Nanang Izzuddin bff351e647 Re #1103:
- Updated RTCP jitter statistics calculation (in receiving direction) to use "interarrival jitter" (was using "difference D") of RFC 3550.
 - Added APIs to reset RTCP statistics.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3237 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-15 10:18:59 +00:00
Sauw Ming fc0c176237 Misc fix (re #1068): added port number in the Host header of http request.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3236 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-13 13:18:08 +00:00
Nanang Izzuddin cbbcb60ada Fix #1078: added XOR_MAPPED_ADDRESS parsing capability to the resolver.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3235 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-06 08:11:04 +00:00
Benny Prijono 10d6243e18 Fixed #1101: Check and calculate IPv4/IPv6 address specified in pj_getaddrinfo()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3234 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-05 13:47:30 +00:00
Benny Prijono ec4c77ec3b Misc (Re: #1068): fixed bug with pjsip_status_code enum, when an optimizing compiler decides to use 16bit integer to represent this enum. In PJSUA-LIB, there is a code which assigns 32bit value to a variable of this type, causing overflow. Thanks Rickard Angbratt for the report
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3233 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-02 12:23:20 +00:00
Sauw Ming 382853f752 Misc(re #1068): Revert the default trace to 0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3229 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29 17:06:01 +00:00
Sauw Ming 3f0320605f Misc(re #1068): fixed crash because pj_http_req may now be destroyed after calling on_complete callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3228 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29 17:02:59 +00:00
Sauw Ming 2d674b320c Ticket #1018:
Application may now destroy pj_http_req inside on_complete callback.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3227 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29 13:43:05 +00:00
Benny Prijono c1426fe8af Fixed segfault Re #740
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3226 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26 14:58:58 +00:00
Nanang Izzuddin ca8cc72ff1 Misc (re #1068): fixed possible overwritten field data, write_data_t::flags, in SSL sock OpenSSL implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3225 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26 05:58:09 +00:00
Nanang Izzuddin 33e291a1e0 Fix #740:
- Fixed zeroed/unset RTP timestamp in RTCP sender report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3224 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26 04:43:50 +00:00
Benny Prijono 122b9a771b Fixed #1039: Add Allow header in outgoing REGISTER request (thanks Daniel Anens for the info)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3223 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24 13:32:05 +00:00
Benny Prijono 07fe230e3d Fixed #1081: Implement ICE option tag (RFC 5678)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3222 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24 12:33:18 +00:00
Nanang Izzuddin 6f5b7f0299 Fix #1075:
- Fixed SRTP transport to only (re)start the SRTP state when the SRTP crypto settings are updated.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3221 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24 08:46:12 +00:00
Benny Prijono e810108cd8 Re #1094: fixed compilation error in previous fix in r3218
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3220 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23 13:18:33 +00:00
Benny Prijono 2dbf507315 Fixed #1079 (Media transport should be kept alive during double-hold scenario). Details:
- now the stream will be destroyed but the media transport will be kept alive during doublehold scenario
 - small fix in SRTP to also negotiate crypto even when the media is marked as inactive, otherwise it's possible that an "optional" endpoint would create RTP/AVP offer and send it to "mandatory" endpoint, which would be rejected and cause the media port to be set to zero


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3219 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23 12:38:28 +00:00
Benny Prijono 61d844050c Fixed #1094: Transmit RTCP keep alive even when the stream is paused (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3218 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23 12:30:04 +00:00
Benny Prijono ab74c904a1 Another unterminated SDP offer/answer negotiation fix (Re: #1045):
- fixed unterminated negotiation if our media transport rejects incoming offer (e.g. due to mismatch SRTP transport) with 488.
 - to fix the above, modified the SDP negotiator (sdp_neg.[hc])'s pjmedia_sdp_neg_cancel_offer() to also be able to cancel in remote offer state
 - also fixed the bug introduced previous Session Timer fix (Re: #1047), which cause SDP negotiator's state to be cleared after failed UAC UPDATE transaction is terminated, which means UPDATE can only be sent 5 seconds after the last UPDATE if the last UPDATE failed.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3217 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23 12:21:20 +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 a8f9e622f5 Fixes #1047 (Don't send UPDATE if remote doesn't support it (thanks Bogdan Krakowski for the report)) and fixes #1097 (Support sending UPDATE without SDP). Details:
- Session timer fixes:
    - will look at remote capability in Allow header
    - if UPDATE is supported, will send UPDATE without SDP first. 
      If this fails, will send UPDATE with SDP
    - otherwise will send re-INVITE
 - PJSUA-LIB will look at dialog's remote capability to determine 
   whether re-INVITE or UPDATE should be sent to change default 
   addresses after ICE negotiation.
 - pjsip_inv_update() now allows NULL offer, in which case the
   UPDATE will be sent without SDP.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3215 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21 13:28:55 +00:00
Nanang Izzuddin 1653c981e5 Misc (re #1068): added new API pjmedia_master_port_wait() to poll master port clock when it is created with PJMEDIA_CLOCK_NO_ASYNC flag.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3214 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21 09:10:44 +00:00
Benny Prijono c6d5fdcbaf Fixed #1086 (New option to update the Contact URI in a single REGISTER request): added contact_rewrite_method account config to control this. Default is to use the new mechanism, i.e. the single REGISTER method.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3213 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-20 08:58:26 +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
Nanang Izzuddin 0fd92673c1 Fix #1045:
- Fixed invite module to reset SDP negotiator state after incomplete SDP offer-answer in re-INVITE/UPDATE.
 - Added some SIPp test scenarios.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3208 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-16 15:26:18 +00:00
Benny Prijono 6d748703d3 Misc (re #1068): fixed possible reading string beyond the buffer in pj_strltrim() if the string only contains whitespaces (thanks Jones Desougi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3207 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-16 14:49:37 +00:00
Nanang Izzuddin 93bacd0bfe Fix #476:
- Added lock codec feature to make sure that only one codec is active, by updating media session using UPDATE (if remote supports it) or re-INVITE.
 - Added few SIPp test scenarios.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3206 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15 09:56:39 +00:00
Benny Prijono 5bbebc0a1d Misc fixes (re #1068): fixed aconfigure to handle the case where ifaddrs.h is present but the functions are not available, as reported to happen with uClibc (thanks Jones Desougi for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3205 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15 05:21:43 +00:00
Benny Prijono a56f32d108 Misc (Re #1068): initialize rtpmap string with NULL as it generates uninitialized memory ptr read under Valgrind. Thanks Jones Desougi for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3204 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15 05:16:06 +00:00
Benny Prijono b2d231342d Re #1068 (Misc Fixes): changed timeout timer value initialization in sip_transaction.c to copy the value from TD timer value instead of calculating it directly from T1. This would enable customization of the timeout value by changing PJSIP_TD_TIMEOUT macro. Previously the only way to modify this is to change the T1 value, which is undesireable.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3203 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15 05:14:10 +00:00
Nanang Izzuddin c742f4e6e2 Close #1072:
- Added API pjmedia_codec_g722_set_pcm_shift() to enable configurable level-adjusment setting.
 - Also added macro PJMEDIA_G722_DEFAULT_PCM_SHIFT (default value is 2) to accomplish 14-16 bit PCM conversion for G722 input/output.
 - Added a feature in G722 to stop level-adjusment/PCM-shifting when clipping occured, compile-time configurable via PJMEDIA_G722_STOP_PCM_SHIFT_ON_CLIPPING macro.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3202 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-11 13:38:42 +00:00
Nanang Izzuddin 5de1abbe2e Fix #1093:
- Fixed memory leak of CVoIPFormatIntfc instances in S60 VAS.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3201 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-11 09:44:18 +00:00
Nanang Izzuddin ff245a27d4 Re #1089:
- Fixed compile error (on Symbian) incompatible types between int and pjsip_dialog_cap_status.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3200 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-09 07:35:26 +00:00
Nanang Izzuddin cf4d141775 Fix #1085:
- Added new codec G721, as alias for G726-32.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3199 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-07 05:23:56 +00:00
Nanang Izzuddin 16852b3f2e Re #668:
- Fixed process_answer() of SDP negotiation, when no common format in a media, instead of returning error, it should just deactivate the media (offer & answer) and continue negotiating next media.
 - Generalized the way of deactivating media: set port to 0 and remove all attributes.
 - Added new API pjmedia_sdp_media_clone_deactivate() to clone media and deactivate the newly cloned media.
 - Updated PJMEDIA SDP negotiation test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3198 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-04 13:41:34 +00:00
Benny Prijono 87b347ed3b Make TURN pool memory sizes compile-time configurable (misc, re: #1068)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3197 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 16:18:11 +00:00
Nanang Izzuddin 2a1b9ee832 Re #1089:
- Added a feature in dialog to store and retrieve remote capabilities dug from the remote messages.
 - Added few APIs in dialog to query and update remote capabilities, also added an API in pjsua_call to query whether a capability is supported by remote.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3196 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 10:41:32 +00:00
Nanang Izzuddin 1f2f4541fe Fix #1073:
- Fixed SDP negotiation in processing answer: when the answer has less media count, generate disabled-media to match the media count.
 - Added python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3195 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 03:06:03 +00:00
Nanang Izzuddin 160a692a7a Misc (re #1068): fixed python test lib inc_sip.py, wrong member name refered in RecvfromTransaction initialization.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3194 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 02:58:23 +00:00
Nanang Izzuddin dfe1be2189 Re #1074: Added python test for SRTP receiving too long key.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3193 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 02:27:41 +00:00
Nanang Izzuddin d61fedcc95 Fix #1088:
- Fixed SDP negotiation to ignore disabled media (with port 0) in the answer.
 - Added a SIPp scenario for reproducing the issue.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3192 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02 23:56:49 +00:00
Nanang Izzuddin 8ddda3eb79 Fix #1074: Fixed SRTP crypto parser to preverify the key length.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3191 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02 09:32:42 +00:00
Benny Prijono 8b33bba1f1 Fixed #1092 (Crash when receiving various messages with "Contact: *" header format)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3190 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02 03:03:43 +00:00
Benny Prijono 022980eeaf Fix #1091: Increase the default maximum number of outstanding asynchronous operations of Symbian socket server to 32
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3189 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-01 15:32:10 +00:00
Benny Prijono 7ec94e61aa Fix #1090: Disable the "Bug in branch_param generator (i.e. not unique)" assertion. This also fixes the hang problem when building the app in Release mode (assertion disabled), because the transaction is destroyed without being unlocked, causing the subsequent transaction unlock to loop indefinitely.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3188 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-01 14:52:18 +00:00
Nanang Izzuddin 1c7f0b0001 Re #1066, in process_m_answer() of sdp_neg.c:
- Fixed removing any unmatching formats in the remote-answer to also work with dynamic payload type.
 - Updated reordering formats priority in the offer based on the answer to also work with dynamic payload type.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3187 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26 17:23:32 +00:00
Benny Prijono 2c496ba22c Misc (re #1068): crash in pj_sockaddr_parse2() if NULL of empty string is given (thanks Joe Meade for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3186 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26 15:10:07 +00:00
Nanang Izzuddin c71bed6688 Fix #1087:
- Moved auto reregistration scheduling to be before the registration callback.
 - Updated validations in auto_rereg_timer_cb() & schedule_reregistration().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3185 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26 15:04:43 +00:00
Nanang Izzuddin 42bb38bba4 Misc (re #1068): AMR codec in IPP codecs should apply Change Mode Request (from AMR payload) only when it is different from current encoding mode.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3184 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26 13:50:42 +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
Benny Prijono 609fff5054 Fix #1071: Increase default maximum SIP packet size to 4000
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3182 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19 06:07:40 +00:00
Benny Prijono b18e95000c Misc fix (re #1068): set default alignment in the configure script to 8 bytes on Sparc (thanks David Coppa for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3181 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19 05:51:38 +00:00
Benny Prijono 99f777454c Changed pj_thread_get_prio_max() to return 0 on OpenBSD because it doesn't support it (thanks David Coppa for the patch)(re #1068)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3180 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19 05:50:08 +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
Benny Prijono c28d8451d2 Re #1051: set default new coreaudio backend to disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3177 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17 16:10:08 +00:00
Benny Prijono 2d1f1b6c04 Re #1050: fixed aconfigure error caused by iPhone merging
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3176 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17 16:09:12 +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
Sauw Ming 55a73cdeb3 Merge #1051 into the main trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3174 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17 12:51:06 +00:00
Sauw Ming d348252103 Fix #1051:
* Automatic detection of build target.
 * Fix compiler warning on Mac



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3173 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17 12:28:17 +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 a9866ae3c1 Re #1050: removed -arch armv6 option from the default CFLAGS generated by configure-iphone, as this is rejected by gcc-4.2.1 that comes with iPhone-3.2 SDK.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3171 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-13 04:57:13 +00:00
Benny Prijono c02fdd6649 Re #1050: automatic selection of ARM compiler to use based on the SDK. No need to create symbolic links to gcc now.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3170 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-13 04:35:16 +00:00
Benny Prijono fd71d3a349 Re #1050: fixed failure in configure script if iPhone binutils/compiler are not in the PATH. They are called with their full paths now.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3169 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-13 00:04:51 +00:00
Benny Prijono 8ec5eae272 Support for iPhone tools in the build system:
- more flexible redeclaration of build tools. Now users may
   override build tools with environment variables, e.g.
   CC, AR, RANLIB, etc.
 - added configure-iphone: configure wrapper for iphone
 - tested with iPhone 2.x SDK

This closes #1050


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3168 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-12 10:59:20 +00:00
Benny Prijono 2be59c3733 Re #1051: fix build error on iPhone 2.x due to some missing constants
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3167 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-12 10:54:49 +00:00
Benny Prijono cce6b9e601 Re #1050: added iPhone specific settings in config_site_sample.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3166 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-12 10:46:02 +00:00
Nanang Izzuddin 0290a5743f Re #1068:
- Fixed max frames-per-packet constants in AMR codec (IPP and passthrough) to be based on PJMEDIA_MAX_FRAME_DURATION_MS setting.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3165 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-11 06:33:55 +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
Nanang Izzuddin 21ad6db4d9 Re #1067: Updated maximum acceptable burst setting in jitter buffer, was hardcoded 1s, now it is 3/4 of JB max size and must not be lower than 1s.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3162 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-07 15:20:10 +00:00
Nanang Izzuddin 5d7064328b Re #1067: Added feature of JB operation tracing to CSV file in stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3161 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-07 15:15:39 +00:00
Nanang Izzuddin 256ce21452 Fixed #1066:
- Added check if the negotiation result of local-offer/remote-answer has no matching format.
 - Added routine to remove any unmatching formats in the remote-answer.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3160 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-07 07:09:16 +00:00
Sauw Ming 8fd1693891 Implemented ticket #1065: audiodev register/unregister feature
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3159 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-05 04:23:27 +00:00
Benny Prijono d43064377b Fixed #1064:
- Removed orphaned third_party/gsm/inc/gsm.h.orig file
 - Added support for external GSM header in /usr/include/gsm.h (rather than <gsm/gsm.h>)
Thanks Christopher Zimmermann for the fixes


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3158 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-01 22:05:41 +00:00
Benny Prijono d4933d7454 Changed version to 1.6-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3157 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-30 14:11:58 +00:00
Benny Prijono ca73f57e14 Changed version to 1.6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3155 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-30 12:41:54 +00:00
Nanang Izzuddin 7988045f86 Re #969: Fixed bug division by zero in JB progressive discard code, caused by possibility of uninitialized burst level after JB switches status INITIALIZING -> PROCESSING (thanks Janos Tolgyesi and Tamàs Solymosi for the report and investigation).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3154 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-30 10:22:05 +00:00
Benny Prijono 4e5c3f53c9 Fixed #1062 (Assertion if 200/OK INVITE response is received during PJSUA-LIB destroy sequence)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3153 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 12:11:51 +00:00
Benny Prijono ebea53ee04 Miscellaneous fix (refs #1026): added svn ignore spec to depend file under g7221 directory
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3152 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 02:33:38 +00:00
Benny Prijono fb52191b3e Added exclusion pattern in the unit tests for codecs that are only available with IPP (refs #1041)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3151 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 02:27:23 +00:00
Benny Prijono da0f3e90e8 Refs #1061: added unit test to test handling of empty realm in 401/407 challenge
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3150 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 00:23:43 +00:00
Benny Prijono c2ce9ccaca Fixed #1061 (Assertion when receiving authentication challenge with empty realm (thanks Andrey Kovalenko for the report)):
- removed the assertion (allow responding to empty realm)
 - slight modification in Authenticate/WWW-Authenticate headers to allow printing challenge with empty realm, otherwise a malformed header will be printed if empty realm is given



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3149 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 00:03:19 +00:00
Nanang Izzuddin 8f0f0d3b10 Misc (#1026) fixed build problems on Symbian S60 5th edition:
- link error undefined reference to `.L23' in function pjsip_cred_info_cmp() (thanks Ken Fish for the report).
 - compile error unable to convert pj_uint32_t to pjsip_transport_state.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3148 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-28 07:52:57 +00:00
Benny Prijono 2ee684b9d9 Ref #1018, fixed failure in pjlib-util-test due to the use of hardcoded port in HTTP client test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3147 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-27 08:31:08 +00:00
Nanang Izzuddin 1c70173201 Misc #1026: moved payload type of G726-32 from static (was 2) to dynamic, and also disabled some more L16 codecs (thanks Bram Kuijvenhoven for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3146 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-26 13:57:28 +00:00
Benny Prijono 40168a413f Fixed ticket #1058 (Different size between pj_sockaddr_in6 and native sockaddr_in6 on 64bit systems, causing failure in using SIP IPv6 UDP transport):
- disabled u6_addr64 field in pj_in6_addr, as this seem to cause 32 byte alignment to be invoked


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3145 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-26 07:08:53 +00:00
Nanang Izzuddin c3ea16a66a Ticket #1057: Implemented pjsua_modify_acc().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3144 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 14:36:38 +00:00
Benny Prijono d9998a95d2 More ticket #1041 (unit test framework):
- added support for Intel IPP build configuration and testing


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3143 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 10:05:09 +00:00
Benny Prijono 4fa1602dde Misc (#1026):
- fixed wrong Unix detection in Python automated test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3142 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 09:52:54 +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
Benny Prijono cbae4a1f5b More on ticket #998:
- fixed crash when parsing invalid SDP body, introduced by the last change


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3140 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 09:39:14 +00:00
Nanang Izzuddin 665800081b Minor fix #1044:
- Moved the code of disconnecting calls (after first re-reg attempt failure) to schedule_reregistration(), so it will be executed earlier (right after the failure of re-reg attempt).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3139 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-14 08:12:08 +00:00
Nanang Izzuddin 91cfa96fe4 Ticket #1056:
- Added functions to set/unset transport state notification callback on specific transport.
 - Updated transaction to immediately terminate the transactions when their transport gets disconnected.
 - Minor update: renamed function pjsip_tpmgr_set/get_status_cb() to pjsip_tpmgr_set/get_state_cb().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3138 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-14 06:57:35 +00:00
Sauw Ming b83b3f3ed2 Implemented ticket #1054: iLBC codec framework for iPhone OS
Implemented iLBC codec framework using Audio Toolbox's Audio Converter. The implementation works on Mac OS as well.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3137 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-13 14:29:56 +00:00
Nanang Izzuddin c4f30cc363 Ticket #1055: Fixed possibility of APS server panic in codec detection on few devices, e.g:N95, by adding short delay before closing APS session.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3136 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-12 10:42:23 +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
Nanang Izzuddin c7166e590b Ticket #1055: Fixed infinite loop in stopping APS after initialization failed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3134 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-07 10:24:41 +00:00
Benny Prijono 4fa2999096 More ticket #1046:
- fixed the wrong priority which caused zeroconf address to end up having the same priority as a legitimate interface (thanks Karl-Fredrik Blixt Hagholm for the report)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3133 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 13:31:22 +00:00
Benny Prijono 422800701f Misc (#1026): added *.plg to svn:ignore in g7221 build directory
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3132 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 13:07:53 +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
Sauw Ming 05a7f069df Implemented ticket #1051: Core audio device support for Mac and iPhone OS
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3127 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 10:55:01 +00:00
Benny Prijono 57f76a3ee4 Creating iphone branch for initial iPhone development/porting
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3126 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 02:33:44 +00:00
Benny Prijono 462a67c3c6 More #1041 (Unit test):
- Initial work for Symbian targets


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3125 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27 07:49:18 +00:00
Benny Prijono 2459bd1712 Fixed MSVC compilation warning introduced by ticket #1046
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3124 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27 03:11:04 +00:00
Benny Prijono 9bde8734e5 Fixed ticket #1048: Memory leak in enum_ipv4_ipv6_interface (ip_helper_win32.c) (thanks Andrey Mamchur for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3123 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27 03:08:08 +00:00
Benny Prijono f9ebaf66dd Ticket #1041 (Unit test):
- Initial Windows/MSVC work


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3122 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27 02:35:06 +00:00
Benny Prijono 1e79d210f9 Ticket #1046: Zeroconf/link-local/ActiveSync IPv4 adress 169.254.x.x may be used on Windows Mobile devices (thanks Jan Boquist for the info)
- add treatment for special IPv4/IPv6 addresses: loopback address and link-local address
 - with this treatment, link-local address will only be used if there is no  other non-loopback/non-link-local IP addresses, and loopback address will only be used if there's absolutely no other IP address


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3121 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-26 05:44:04 +00:00
Benny Prijono f44f79b9a3 Ticket #1041:
- initial work for GNU targets


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3120 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-23 14:03:30 +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
Benny Prijono a6ff3af6fe Misc (#1026): added more documentation for PJNATH_EICEFAILED error code
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3118 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-08 03:25:17 +00:00
Nanang Izzuddin a7719d3e9d Ticket #1043:
- Fixed bug of unused timeout setting in Symbian SSL socket, ssl_sock_symbian.cpp.
 - Added an SSL test scenario of SSL connect timeout, SSL socket client tries to connect to non-SSL socket server.
 - Fixed OpenSSL-based SSL socket to start SSL timer before TCP connect (was started after TCP connected and before SSL handshake).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3117 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-06 02:04:52 +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 10d9c1463d More ticket #1033: Fixed send_msg_callback of transaction.c to reset 'cont' flag to stop (re)transmitting when transaction has been unregistered.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3114 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-01 12:14:24 +00:00
Nanang Izzuddin d69220bb10 Minor #1032: Fixed transport TCP of missing returning PJ_FALSE when connect attempt failed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3113 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-26 09:06:44 +00:00
Benny Prijono d88fc8cd4c More #1032: fixed gcc warnings in printf format
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3112 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25 12:16:36 +00:00
Nanang Izzuddin 3dd7507d1a Minor update on #969: Removed 'experimental feature' comment on progressive discard.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3111 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25 12:07:29 +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
Benny Prijono cca2e436db Misc (#1026): fixed wrong documentation of pjsua_acc_config.allow_contact_rewrite
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3109 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25 09:33:18 +00:00
Benny Prijono c7b3c3bb10 Ticket #996: update the ETag header in the pending PUBLISH requests if the value changes in the previous request (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3108 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24 11:22:21 +00:00
Benny Prijono 03d9bc875b Fixed ticket #1040: Problem with getting the default IP interface on FreeBSD due to wrong argument to connect() (thanks Roman Grachev for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3107 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24 09:04:46 +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 38c975dfa3 Ticket #1031: Automatically handle 423 (Interval Too Brief) response in SIP registration (thanks Tomáš Valenta for the suggestion)
- implemented in sip_reg.c instead of in PJSUA-LIB, so that the functionality can be reused by non-PJSUA-LIB applications
 - also added several Python test scripts



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3105 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-23 11:03:07 +00:00
Benny Prijono a12f5a460b Misc (#1026): added svn_add.bat and svn_pset.bat, utilities to add new source files to repository
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3104 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-19 13:05:08 +00:00
Benny Prijono 04046c7231 More ticket #1038: added to VS6 and VS2005 projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3103 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-19 13:01:40 +00:00
Sauw Ming 60a0c9bee0 Implemented ticket #1038: null audio device
* pjmedia-audiodev:
   * implement null audio device
 * build:
   * added null audio support on MMP, and Makefile (TODO: vs6 and vs2005)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3102 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-19 09:57:48 +00:00
Benny Prijono bc2bec77f1 Fixed minor bug (#1026): custom ICE priority table must not assign greater priority for SRFLX than PRFLX candidate type (thanks Saúl Ibarra Corretgé for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3101 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-18 14:52:05 +00:00
Benny Prijono 556a285a74 More ticket #1028: fixed compile error caused by corrupted version of passthrough.c when re-commiting r3074 (in r3078). (note: this changeset was originally done by nanang, recheckedin due to moving svn repository)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3100 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-17 17:31:19 +00:00
Benny Prijono 46bd0840a9 More ticket #1009: Initial support for IPP on Mac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3099 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-12 14:12:41 +00:00
Sauw Ming b36176088a More ticket #1018:
* Immediately process response body after receiving the header.
 * Fix GET method when Content-Length header is not specified.
 * Fix checking when HTTP request is cancelled.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3098 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-11 12:50:42 +00:00
Benny Prijono 3965f19782 Ticket #1009: Support for IPP 6.1 on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3097 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 18:46:05 +00:00
Benny Prijono 166d502e3a Ticket #995: Send un-PUBLISH when pjsua_acc_set_registration(FALSE) is called (thanks Johan Lantz for the suggestion)
- in this implementation, when pjsua_acc_set_registration(FALSE) is called, the un-REGISTER request will be sent immediately after un-PUBLISH, unlike the process during shutdown where the un-REGISTER request will be sent only after un-PUBLISH transaction is complete


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3096 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 14:24:48 +00:00
Benny Prijono 990f6e9989 More ticket #1018: fixed some more warnings about pointer conversions, or errors if the library is compiled in C++ mode (thanks Atik Khan for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3095 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 10:45:07 +00:00
Benny Prijono 9a048649f3 Fixed ticket #1011: "Invalid operation step" assertion when TCP is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3094 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 08:48:27 +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
Benny Prijono 743ce28766 More ticket #1018: fixed warning about incompatible pointer types
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3092 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 07:49:03 +00:00
Benny Prijono bcc8dd7270 Fixed ticket #1034: Crash on accepting a call with no codec in the SDP offer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3091 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-09 12:28:03 +00:00
Benny Prijono 3dd29e2863 More ticket #1033:
- fixed the problem that caused ACK not to be sent. This happened when TCP switching is used, and the TCP fails to send the request.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3090 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-08 17:42:35 +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
Benny Prijono 653af2ec75 Misc (#1026): PJLIB does not return the correct error code when TCP connection fails on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3088 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-05 11:11:52 +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
Nanang Izzuddin 6cc031c24e Ticket #998:
- Updated pjmedia_sdp_parse() to apply direction attribute in session to each media that has no direction attribute (no overriding).
 - Added python tests.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3086 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-03 14:43:25 +00:00
Nanang Izzuddin 9f538cb637 Ticket #766:
- Applied patch provided by Bram Kuijvenhoven related to truncation issue in floating-point to integer type-casts in pjmedia components.
 - Original patch proposal and description can be found here: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-January/010258.html.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3085 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-01 11:23:54 +00:00
Benny Prijono 5c816affbc More ticket #1033:
- fix for r3071: added protection for case when TSX_HAS_PENDING_TRANSPORT flag is set to the transaction but pending_tx is NULL, causing crash


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3084 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 22:00:04 +00:00
Nanang Izzuddin c5a1759e97 Ticket #1028:
- Updated codecs docs, more detail info about codec settings.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3083 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 15:51:09 +00:00
Benny Prijono 4969f375b4 More ticket #1037:
- bug in aligning pointer if sizeof(long) is less than sizeof(void*). Thanks John Ridges for pointing this out


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3082 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 11:20:43 +00:00
Benny Prijono ba858ec479 Fixed ticket #1037: Memory pool alignment error when alignment is set to be greater than the default (thanks John Ridges for the report):
- fixed the pool allocation routines in PJLIB, 
 - add alignment test in pjlib-test (only useful if PJ_POOL_ALIGNMENT is configured in config_site.h),
 - fixed other pool tests in pjlib-test which are broken when PJ_POOL_ALIGNMENT is enlarged


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3081 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 10:10:49 +00:00
Nanang Izzuddin 98f761b286 Ticket #1028 (minor):
- Fixed missing pjmedia_codec_mgr_destroy() in pjmedia_endpt_destroy().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3080 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-28 05:02:56 +00:00
Benny Prijono 19a87c7a08 Initial implementation of ticket #1016: Native Linux ALSA audio device backend implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3079 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 17:22:17 +00:00
Nanang Izzuddin 06839e722b Ticket #1028: Recommit r3074 with updated codec.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3078 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 11:48:31 +00:00
Benny Prijono d1873b783e Fixed ticket #1036: Stray timer may be registered by SIP TCP and TLS transport in destroy routine, which could crash the program on Symbian (thanks Tamàs Solymosi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3077 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 09:09:27 +00:00
Benny Prijono a1bc01925b Fixed ticket #1035: Crash in timer heap cleanup sequence on Symbian if the pool for the timer entry is released beforehand (thanks Tamàs Solymosi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3076 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 07:28:53 +00:00
Benny Prijono 0ff300cbeb Undo r3074 for ticket #1028 as it is missing updated codec.h hence causing build errors (thanks Michael Bradley Jr for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3075 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-26 18:54:28 +00:00
Nanang Izzuddin 721750538f Ticket #1028:
- Added new API pjmedia_codec_mgr_set_default_param() to set/update default codec parameter and implemented pjsua_codec_set_param() based on it.
 - Added mutex in codec manager to protect states manipulations.
 - Modified API pjmedia_codec_mgr_init() to add pool factory param.
 - Added new API pjmedia_codec_mgr_destroy().
 - Updated passthrough codec AMR to regard peer's mode-set setting.
 - Fixed VAS audio device to apply AMR encoding bitrate setting.
 - Fixed IPP codec codec_open() to update AMR bitrate info (for stream) when AMR encoding bitrate is not using the default, e.g: requested by peer via format param 'mode-set' in SDP.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3074 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-26 15:29:23 +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
Nanang Izzuddin 6dd1ff8c3e Misc (#1026): missed PLC availability check in stream get_frame_ext().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3072 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25 17:14:44 +00:00
Benny Prijono 09638547a7 Initial commit for #1033: Assertion error when shutting down PJSIP while TCP/TLS connect is in progress and a transaction is waiting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3071 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25 13:42:56 +00:00
Benny Prijono 984d7679ed Misc (#1026): initialize display field of SIP name address to NULL, as some libc library (mingw with gcc4, msvcrt) has some problem with sprintf with zero length and invalid pointer (thanks Klaus Darilion for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3070 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 17:27:32 +00:00
Benny Prijono b2d60deaa9 Fixed ticket #1030: Missing To tag in out-of-dialog response (thanks Rui Macedo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3069 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 17:07:28 +00:00
Benny Prijono 15d3a70d96 Ticket #1029: Fix support for multiple (event) subscriptions in a single dialog (thanks Wang Eric for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3068 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 10:04:26 +00:00
Benny Prijono 957dc41433 Related to #969: make maximum PLC generated frames configurable (PJMEDIA_MAX_PLC_DURATION_MSEC)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3067 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 08:39:14 +00:00
Benny Prijono 16b2053b7e Ticket #1026: Wrong endianness detection for Motorola m68k architecture in pj/config.h (thanks Andreas Wehrmann for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3066 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-20 19:42:46 +00:00
Nanang Izzuddin b6f66bc233 Ticket #969:
- implemented progressive discard algorithm, discard rate is calculated from ratio of effective size to effective burst level.
 - updated jbuf to clarify prefetch and burst level distinction, previously they are stored in same var, i.e: prefetch, while the semantic is actually different.
 - updated STABLE_HISTORY_LIMIT in jbuf, it is now 20 (was 100), to adjust burst level faster.
 - added test case of periodic-spike-burst-case in jbtest.dat for testing the new algorithm.
 - updated stream to limit the rate of jbuf empty/lost log messages, it will only log first empty/lost event, then log again once jbuf returning normal frame (also counter of previous empty/lost frames).
 - minor updates on jbuf.c: variable names, logs, added burst to jbuf state.
 - minor updates on jbuf_test.c: handle comment in test session header, seq jump is now 20 (was 5000).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3065 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-20 01:02:37 +00:00
Benny Prijono a38a403b76 Small bug in ticket #1025, which caused build error related to PortAudio in Mac OS X
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3064 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-15 16:53:56 +00:00
Benny Prijono ddd4714f1e Ticket #694: work on 'make install':
- adhere to --prefix
 - header and lib files installation
 - pkgconfig creation
 - also added version.mak to fill in with the correct version


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3063 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-15 15:06:20 +00:00
Benny Prijono 8a9b3b272c More #1025 (support for using external third party libraries):
- support for using external libspeex and libgsm
 - replaced --with-pa-path with --with-external-pa


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3062 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-14 14:46:54 +00:00
Nanang Izzuddin cb40a1c517 Ticket #1027: Fixed stream to skip (frame.buf!=NULL) checking when frame type is PJMEDIA_FRAME_TYPE_EXT before passing the frame to encoder.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3061 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-14 12:39:11 +00:00
Benny Prijono 5765555ef0 Misc (#1026): remove the code that silently set SO_SNDBUF/SO_RCVBUF as it's not that useful and it would print error message on many platforms that don't support it, causing many questions from users
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3060 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-14 09:05:08 +00:00
Benny Prijono a1aec0ec96 Initial fixes for #993 (OpenSolaris issues)
- configure script patch for FIONBIO and SIOCGIFFLAGS errors


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3059 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13 21:28:06 +00:00
Benny Prijono fe0c127516 Ticket #1025: Support for using different PortAudio installation/path
- added --with-pa-path configure option
 - remove the use of PaUtil_SetDebugPrintFunction() since this is not always available across all PA versions (?)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3058 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13 16:28:15 +00:00
Benny Prijono d523370d48 Initial OpenBSD fixes (#994):
pjlib:
 - Autoconf fixes in detecting header availability
 - Undefined sched_get_priority_max() and sched_get_priority_min()
    - protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and
    - return hardcoded (0, 31) if __OpenBSD__ macro is declared
 - Better GUID generation

pjlib-test:
 - Reduce the loop in PJILB activesock test
 - Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex

pjlib-util-test:
 - Fixed bug in pjlib-util resolver test



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3057 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13 13:09:45 +00:00
Perry Ismangil 7d1f7686b2 Updated to 1.5.5-trunk after release
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3056 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-11 11:16:12 +00:00
Perry Ismangil 9b5e1f8839 Changed version to 1.5.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3054 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-11 09:42:39 +00:00
Benny Prijono 06b0f95a81 More ticket #1013: PJSIP resolver should not try to resolve the target if IP address is given (thanks Emil Sturniolo for the report)
- fixed bug with IPv6
 - also fixed bug with not fully initializing socket address, causing assertion on pjsip-test and also potentially will cause error on MacOS X due to sin_zero_len not being zeroed


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3053 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 17:12:05 +00:00
Nanang Izzuddin eeb84dc35a Ticket #1015: Disabled ioqueue Completion Port (ioqueue_winnt.c).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3052 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 16:38:47 +00:00
Nanang Izzuddin b2c7529e62 Ticket #1001:
- Moved setsockopt(SO_UPDATE_ACCEPT_CONTEXT) from pj_sock_accept() to ioqueue_on_accept_complete().
 - Added setsockopt(SO_UPDATE_ACCEPT_CONTEXT) in pj_sock_accept() for new accepted socket when immediate connection is available.
 - Added pj_sock_getsockname() check in unit test ioq_tcp.c for new accepted socket.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3051 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 13:08:05 +00:00
Benny Prijono 50e1546d3b Ticket #991:
- use PortAudio revision 1433 instead, since PA revision 1434 introduced dependency to newer DirectX SDK (DXSDK v9 2002/2004 edition fails to compile PA) 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3050 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 12:02:36 +00:00
Benny Prijono 808d1a46ab Ticket #1013: PJSIP resolver should not try to resolve the target if IP address is given (thanks Emil Sturniolo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3049 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 10:02:51 +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 ebeeb1bf52 Ticket #1012: Potential buffer overflow in Unicode string conversion (thanks Orville Pike for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3047 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-06 14:35:13 +00:00
Benny Prijono caecfd4c40 Ticket #992: Symbian build issues using RVCT compiler (thanks Gabor Tanka for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3046 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-06 08:34:41 +00:00
Benny Prijono 98301da871 Misc (#1003): fixed bug: wrong month value in PIDF timestamp generation (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3045 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-05 15:23:43 +00:00
Nanang Izzuddin f366bf78b0 Ticket #1010:
- Fixed bug in some APIs of address resolver and IP helper to reset sin_len member of sockaddr.
 - Added purity test of sin_len member checking in pjlib test.
 - Fixed bug in pj_getaddrinfo() when address family param set to PJ_AF_UNSPEC (assertion raised as it called pj_sockaddr_get_addr() with PJ_AF_UNSPEC too).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3044 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04 16:54:50 +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
Benny Prijono 9dec20c51f Ticket #991: updated PA to the latest version (revision 1438)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3042 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04 14:05:59 +00:00
Benny Prijono bf53b00eb6 Misc fix (#1003): resolve NAT type after mapped addresses for SIP/RTP/RTCP sockets have been resolved, so reduce chattiness during initialization and simplify debugging related to STUN problems
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3041 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04 13:08:31 +00:00
Benny Prijono 18217d61c6 Few fixes and enhancements to Windows IP helper, related to #1000:
- enum_ipv4_ipv6_interface() function:
	- bug fix: function should return error if no interface is found
	- do not include interfaces that are down, loopback interface, interface with 0.0.0.0/24 address, interface with zero address, etc.
 - improve buffer robustness for enum_ipv4_interface() and enum_ipv4_ipv6_interface() functions, by supplying only small buffer, but added fallback to allocating the buffer from heap if the buffer is not large enough to contain the result.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3040 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-30 08:39:14 +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 48443dd48c More ticket #1000:
- fixed bug caused by r3030. If an adapter with NULL firstUnicastAddress is found, the function will return uninitialized array element.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3038 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-29 17:37:51 +00:00
Benny Prijono f4385cd042 Fixed ticket #1007: Heap corruption when socket address with invalid address family is given (thanks Emil Sturniolo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3037 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-29 16:53:33 +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 531be6c093 Misc (#1003): added protection against situation when pj_sock_getsockname() returns PJ_SUCCESS but 0.0.0.0 is reported as the socket address, potentially causing SIP TCP transport to put 0.0.0.0 or empty Via address. Not sure if this situation could happen though.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3035 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-22 13:00:22 +00:00
Benny Prijono d53ed17152 Ticket #1004: Symbian timer heap fix
- timer heap now records active timers and cancel them when it's destroyed


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3034 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-16 13:30:34 +00:00
Benny Prijono 54d642db3b Ticket #1000: fixed different treatment with regard to Unicode argument to GetProcAddress between Windows and Windows Mobile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3033 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-14 14:24:26 +00:00
Benny Prijono e79115689f Misc (ticket #1003):
- added missing transport selection information in pjsua_acc_create_request(), when the account has been locked to use a specific transport/listener.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3032 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-14 11:13:45 +00:00
Benny Prijono 011e3f27f0 Ticket #1002: Crash when adding/removing buddies (thanks Nikolay Popok and Robert Cichielo for the reports)
- the timer associated with a buddy is not removed when buddy is deleted, causing crash later on in timer heap. Fixed.
 - when fails to send the initial SUBSCRIBE request, the dialog associated with buddy subscription will have been destroyed in the callback, causing any subsequent "pjsip_dlg_dec_lock(buddy->dlg)" call to crash. Fixed by protecting the call with "if (buddy->dlg)".


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3031 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-10 05:16:23 +00:00
Benny Prijono fcaf9cfc1e More ticket #1000 (IPv6 interface enumeration fails due to typo error in Windows targets):
- fixed crash if GetAdaptersAddresses() returns adapter with NULL "firstUnicastAddress". This happens when the interface is disabled.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3030 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-10 04:56:26 +00:00
Benny Prijono 49e78b42f2 Fixed ticket #1000: IPv6 interface enumeration fails due to typo error in Windows targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3029 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-08 16:53:29 +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 64900a067e Changed version to 1.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3026 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-25 15:03:44 +00:00
Nanang Izzuddin 9d0da8d9ad Ticket #990:
- Updated VAS stream start to be synchronous.
 - Fixed VAS formats enumeration in factory_init() to delete VAS factory instance.
 - Minor fix: compile warning on 5th edition: CPjAudioEngine has virtual member but no virtual destructor.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3025 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-24 12:24:35 +00:00
Benny Prijono 6b0d9a02dc Misc (#951): added make selftest target
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3024 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-24 02:51:41 +00:00
Benny Prijono b918ae0da0 Misc (#951): fixed compilation warning on Win32 Release build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3023 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-23 15:04:18 +00:00
Benny Prijono 39f187cb19 More #953 (ICE may find the wrong best candidate):
- the sorting process may cause valid checks to point to the wrong candidate pair. This is reproducible by pjnath-test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3022 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-23 15:02:18 +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
Nanang Izzuddin 4874763f26 Ticket #957:
- Fixed compile error of incompatible param type (or bad type conversion) on Symbian 5th ed (and perhaps also on some GCC versions).
 - Fixed on_connect_complete() to reset SSL sock state before callback when connection fails (OpenSSL impl).
 - Fixed saving remote address before start connecting, so it won't miss remote address info when socket connection establishes immediately (OpenSSL impl).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3020 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20 07:48:41 +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
Nanang Izzuddin a4cf8d898c Ticket #957: Updated SSL sock performance test to avoid false connected state problem caused by server listen backlog excess (problem examined on mac platform).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3018 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 07:14:28 +00:00
Nanang Izzuddin ff39ffd525 Misc (#951): compile warning in norm_s() in g7221 basic_op.c, expression always results false, passed codec vector test after fix applied on win64 and mac.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3017 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 04:44:25 +00:00
Nanang Izzuddin 15d5108856 #972: Removed PJ_SOL_SOCKET check in pjlib-test as it is defined as 0xffff on some platforms (e.g: Win, Mac).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3016 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 04:36:25 +00:00
Nanang Izzuddin 984f8e4ff6 Misc (#951): Put init value to var 'ftype' (somewhere) in jbuf.c to avoid compile warning (var used without initialization).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3015 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 04:26:00 +00:00
Nanang Izzuddin add2c418e9 Misc (#951): Updated local SDP answer reference in sdp neg test related to fix in #964.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3014 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 04:18:58 +00:00
Benny Prijono 1cd713bae8 Misc (#951): undo r3012, and silently adjust max_calls to PJSUA_MAX_CALLS instead if it is greater
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3013 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 00:33:00 +00:00
Benny Prijono 4bf49ea383 Misc (#951): check when app specifies max_calls that is greater than PJSUA_MAX_CALLS (thanks Robbie Hanson for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3012 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11 00:21:55 +00:00
Nanang Izzuddin a45f81e1ea Misc (#951): Fixed wrong media order in SDP response checking in python test script sendto/126.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3011 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 10:58:20 +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 d3d18c325a Fixed for #937 (presence enhancements): handle case where event argument is NULL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3009 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 10:54:11 +00:00
Benny Prijono 14681e32d6 More ticket #957 (SSL): exclude sip_transport_tls_ossl.c from VS6 build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3008 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 10:46:38 +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 0a411e2a08 Misc (#951): fixed compilation warning on gcc/Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3006 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 07:59:45 +00:00
Benny Prijono bff0c9e7bf Misc (#951): fixed misc compilation warnings with gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3005 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 05:54:58 +00:00
Benny Prijono bdf00d3cd6 Misc (#951): added missing bidirectional.o in PJMEDIA Makefile (thanks Thomas Falk for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3004 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 05:26:37 +00:00
Benny Prijono a27ca1b9a1 More ticket #940: Multiple header rows with the same name may not be completely processed by PJSIP modules:
- handle the case when context doesn't have rdata (such as when parsing individual header or in pjsip-test), which crashed the app


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3003 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 05:09:44 +00:00
Benny Prijono 2ef519fb8c Fixed ticket #989: Issues with Windows Unicode build (thanks Michele Cicciotti for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3002 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 04:30:46 +00:00
Benny Prijono 4f93376671 Ticket #864: Revise on account registration Contact update rule
- don't switch if only port number is different and the Via received address is private
 - always update the transport (i.e. Via) address as well


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3001 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 03:45:42 +00:00
Nanang Izzuddin b5e025aeba Ticket #957: Fixed 0.0.0.0:0 address returned by SIP TLS client transport, which would cause 0.0.0.0:0 address in SIP via header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3000 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 13:40:26 +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 af20ce0cb2 Misc (#951): compilation warnings about unused local variables in passthrough codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2997 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 08:49:32 +00:00
Nanang Izzuddin 8ea7eb016a Misc fix (#951): Fixed pjsua bug RTP timestamp & sequence resetted after hold-resume (thanks Nikolay Popok for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2996 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 08:11:34 +00:00
Benny Prijono f78d35d77b Ticket #988: Aray bounds checking in SDP functions (thanks Mark Webster for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2995 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 05:18:12 +00:00
Benny Prijono 7ee05330f8 More #957 (TLS): updated pj_perror() with the new PJ_PERROR() API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2994 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 04:34:50 +00:00
Benny Prijono 0e61a5b9e2 More #950 (QoS): updated with the new pj_perror() syntax
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2993 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 04:32:33 +00:00
Benny Prijono c6768e5b4e Updated ticket #981: pj_perror() and PJ_PERROR() API:
- added PJ_PERROR() macro to allow compile time omitting
 - changed pj_perror() API to allow formatting of the title using printf like format
 - added a simple test in pjlib-test
 - updated Doxygen documentation


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2992 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 04:09:13 +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
Nanang Izzuddin eef9b8defe Ticket #957:
- Updated Symbian PJLIB test build setting to enable SSL sock test.
 - Fixed ciphers enumeration in Symbian SSL sock.
 - Fixed OpenSSL SSL sock to avoid initializing OpenSSL multiple times.
 - Fixed SSL unit test to avoid divide-by-zero in setting random seed.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2990 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06 13:31:37 +00:00
Nanang Izzuddin 8e5f634df1 Ticket #957: Workaround fix for SSL socket specific related to ticket #985.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2989 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06 08:01:59 +00:00
Benny Prijono 020bea19d6 Fixed ticket #986: Assertion when authorization PJSIP_AUTH_AUTO_SEND_NEXT is enabled (thanks Zhefeng Du for the report)
- also added SIPp scenario for testing


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2988 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06 04:16:36 +00:00
Nanang Izzuddin 1676d9832b Ticket #954: Added sipp test scenario for issue 1 (bad SE in 200 response, less than min-SE in request).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2987 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-05 13:33:18 +00:00
Nanang Izzuddin 2d0f8feaf3 Ticket #957:
- Applied workaround solution for getting local address problem with getsockname on win IOCP by using parent local address instead.
 - Fixed SSL socket not to return PJ_FALSE in active socket accept callback, to keep accepting connections.
 - Applied workaround solution for OpenSSL error mapping, as OpenSSL error codes are big numbers that won't fit pj_status_t.
 - Minor updates, e.g: using pj_perror(), removing some logs, OpenSSL error print callback.
 - Minor updates on SSL unit test, e.g: start_read() before start sending, additional ioqueue poll to cleanup sockets, add timeout feature to https client test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2986 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04 17:08:32 +00:00
Benny Prijono 611083d09e Fixed ticket #940: Multiple header rows with the same name may not be completely processed by PJSIP modules
- the parser now collect and aggregate all Supported/Require header fields into single header


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2985 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04 13:17:31 +00:00
Benny Prijono 8db270b0fe Fixed ticket #975: Symbian timer heap implementation unable to schedule duration more than 2100 seconds (thanks Nir Elkayam for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2984 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04 04:24:33 +00:00
Nanang Izzuddin 3128a126f3 Misc fix (#951): Fixed possible random/unexpected pairs generated in ioqueue tcp unit test (such case was occured when test was performed using IOCP ioqueue on Vista).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2983 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04 03:35:13 +00:00
Benny Prijono b999d343bf More ticket #972: setsockopt options compatibility on various platforms: pjlib-test failed on socket test because SOL_SOCKET is defined by Windows Platform SDK as 0xFFFF
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2982 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04 01:55:48 +00:00
Nanang Izzuddin abce36a11e Ticket #957:
- Added SSL socket performance test.
 - Added incompatible SSL proto test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2981 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-03 14:29:31 +00:00
Nanang Izzuddin 7369d2255a Ticket #984: Minor fix of compile warning of unused arg.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2980 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-03 12:58:54 +00:00
Nanang Izzuddin 36aa1fb3de Ticket #984: Fixed active socket to pass updated/correct descriptors in invoking accept callback for the application.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2979 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-03 12:44:11 +00:00
Benny Prijono 502b4e0ced Misc fixes (#951): renamed mips variable in pjmedia MIPS test since it conflicts with some internal name in MIPS target (thanks Antonio Anton for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2978 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-30 01:18:28 +00:00
Benny Prijono a8fd3840c0 Ticket #983: make native WMME the default audio device on Windows and Windows Mobile:
- increase default playback latency (PJMEDIA_SND_DEFAULT_PLAY_LATENCY) to 140ms for Win32 and 160ms for WM
 - set default PJMEDIA_SOUND_BUFFER_COUNT to (PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20 rather than hardcoded 6
 - disable PA from audiodev on Win32 and WM


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2977 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-29 09:39:17 +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
Nanang Izzuddin 53add071e5 Misc fix (#951): Fixed pjmedia Makefile build config to clean pjmedia-audiodev component properly.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2975 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-29 03:31:57 +00:00
Benny Prijono 47cdfb62a8 More ticket #982: updated VS6 project with the mwi.[hc]
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2974 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-28 12:19:35 +00:00
Nanang Izzuddin 9c7616f2e2 Ticket #957: Updated PJSIP_HAS_TLS_TRANSPORT default value to refer to PJ_HAS_SSL_SOCK.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2973 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-28 06:09:15 +00:00
Nanang Izzuddin 8d75958b1b Ticket #957: Removed DTLS proto in SSL socket with OpenSSL backend as it hasn't been really supported yet.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2972 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-28 03:41:34 +00:00
Nanang Izzuddin 6cfc6d5c80 Ticket #957:
- Fixed SSL socket unit test issues (mostly on Linux platform): let OS manage the binding port (specify port to 0), use pj_sockaddr_get_len() instead of sizeof() for sockaddr size, DOS eol format for certificate and private key files.
 - Temporary fix for SSL_CTX_use_certificate_chain_file() false error alarm (after previous OpenSSL handshake error), by clearing OpenSSL thread error queue in reset_ssl_sock_state()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2971 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-27 02:21:28 +00:00
Nanang Izzuddin ea6d3c4d6b Ticket #957:
- Added features in secure socket: handshake timeout timer, certificate info, renegotiation API.
 - Added unit test for secure socket, along with testing purpose certificate & private key.
 - Updated build configs for secure socket.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2970 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26 15:47:52 +00:00
Nanang Izzuddin a326fbfba5 Misc fix (#951): Updated active socket to keep passing the packet pointer, instead of NULL, when connection is closed/error and no remainder data, as application, e.g: SSL sock, may need to have access on it.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2969 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26 14:09:09 +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 610973a068 More ticket #950 (QoS):
- fixed wrong DSCP field operation with sock_qos_bsd.c backend
 - tested on Linux for SIP (UDP/TCP), UDP RTP/RTCP, and ICE
 - renamed 801_1_P names to SO_PRIO
 - changed a bit of doxygen documentation (the title etc)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2967 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-25 10:50:17 +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 9055f57a83 Ticket #981: new pj_perror() utility API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2965 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-25 08:46:40 +00:00
Benny Prijono 78531d79a3 More ticket #972: SOL_UDP is not set properly on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2964 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-24 02:18:27 +00:00
Benny Prijono 17412425cd Fixed ticket #980: Memory pool alignment error when alignment is set to be greater than 4 bytes (thanks John Ridges for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2963 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-24 02:06:40 +00:00
Benny Prijono 1d61ba5e51 More ticket #972: fixed compilation error on Linux due to the last introduction ot PJ_TCP_NODELAY. Everyone needs to re-run configure though (thanks Dan Arrhenius for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2962 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-24 00:00:40 +00:00
Benny Prijono 64e1787e08 Fixed ticket #979: Crash when printing Retry-After header (thanks Andrey Kovalenko for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2961 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-22 01:10:58 +00:00
Benny Prijono 6ab0532a18 More #937 (presence):
- added protection to not resubscribe immediately if initial SUBSCRIBE is responded with 481 for some reason


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2960 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-21 03:03:06 +00:00
Benny Prijono 12c01a959e More ticket #937 (presence revamping):
- Added couple of SIPp scenario files to test various retry scenarios:
    - uas-subscribe-refresh-481.xml: client should resubscribe immediately on receiving 481 on resubscription
    - uas-subscribe-terminated-retry.xml: client should resubscribe upon receiving NOTIFY with some specific termination reasons
 - Added log message when PJSUA-LIB is resubscribing automatically due to above




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2959 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-21 02:37:52 +00:00
Nanang Izzuddin 793f939969 Ticket #978: Fixed noise in APS G.729 playback/decoding on some devices by adopting G.729 SID/DTX frame handling from VAS implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2958 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 14:54:57 +00:00
Benny Prijono 30b8ede479 Fixed ticket #977: ICE does not change role to Controlling when talking to ice-lite agents (thanks Amaresh Marekar for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2957 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 14:44:00 +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
Nanang Izzuddin 79f4f20268 Ticket #976: Fixed pjsua_call_make_call() to associate call with account before media channel initialization.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2955 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 13:14:40 +00:00
Benny Prijono 3492140945 Misc (#951): added couple of SIPp scenario XML files for future use:
- uac-subscribe.xml: generic subscriber
 - uac-options.xml: send OPTIONS


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2954 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 03:05:37 +00:00
Benny Prijono ed93903816 More ticket #965: Receiving (malformed) re-INVITE with the same Via branch parameter value as previous INVITE would raise assertion (thanks Daniel Nanassy for the report)
- added the SIPp XML scenario to reproduce this


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2953 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 03:02:21 +00:00
Benny Prijono 72748d012a More ticket #972: compilation problem with IPPROTO_IPV6 constant (thanks Robert Cichielo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2952 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 01:24:42 +00:00
Nanang Izzuddin cf69c28174 Ticket #954 (issue no 2): Updated session timer to process 2xx response in mod_inv state handlers (was in mod_inv_on_rx_response()).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2951 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-16 06:28:56 +00:00
Nanang Izzuddin 006cc01eeb Ticket #957:
- Added SSL socket abstraction with OpenSSL backend.
 - Updated cipher data type and added cipher constants (Symbian SSL socket has also been updated).
 - Updated SIP TLS transport to allow setting certificate/credential (via file).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2950 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-16 03:06:13 +00:00
Benny Prijono dc20c5909a Misc (#951): pool that is used to add missing ";lr" parameter in the Route URI is not destroyed in PJSUA-LIB, causing potential memory leak
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2949 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-15 06:55:30 +00:00
Benny Prijono 3249988985 Fixed ticket #974: Crash if ICE session is destroyed by the application inside "on_ice_complete" with an PJ_ICE_STRANS_OP_NEGOTIATION op callback (thanks John Ridges for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2948 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-15 04:46:39 +00:00
Benny Prijono 948d4f8668 Fixed ticket #973: pj_ioqueue_accept() fails on Windows NT IOCP backend if connection is immediately available and the "local" parameter is NULL (thanks John Ridges for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2947 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-15 04:04:45 +00:00
Benny Prijono db04cd5260 Ticket #972: setsockopt compatibility problems on Windows (thanks Yann and John Ridges for the reports)
- set PJ_SOL_IP, PJ_SOL_TCP, and PJ_SOL_UDP to IPPROTO_IP, IPPROTO_TCP, and IPPROTO_UDP respectively on Windows
 - also added PJ_TCP_NODELAY and PJ_SO_REUSEADDR


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2946 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-15 03:48:20 +00:00
Benny Prijono f5d9f1f381 Ticket #881: send UPDATE or re-INVITE after ICE negotiation, if the default candidate has changed
- done
 - added pj_ice_strans_state (to be used for informational purposes for now)
 - added pjmedia ICE transport specific info, and display it in call dump output
 - misc fixes (changed pjmedia_transport_info.spec_info_cnt from int to unsigned)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2945 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14 13:13:18 +00:00
Benny Prijono 43cccb99ce Fixed ticket #971: Assertion in ICE with regular nomination strategy when registering timer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2944 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14 10:36:32 +00:00
Benny Prijono 384dab4d61 Ticket #970: More gracefull PJSUA-LIB shutdown sequence. Enhancements:
- wait for unregistration to complete (or a preconfigured delay expires)
 - new account config field to set the maximum delay to wait for unregistration
 - rejects incoming requests (INVITE, SUBSCRIBE, and OPTIONS) when shutdown is in progress


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2943 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14 01:58:04 +00:00
Benny Prijono 534a9ba6a0 Ticket #364: Upon unregistration, (un)REGISTER should be sent only after (un)PUBLISH has completed successfully
- wait for unpublication to complete or some delay expires, before sending unregistration
 - added unpublish_max_wait_time_msec field in account config to control how long to wait


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2942 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-13 14:01:59 +00:00
Nanang Izzuddin 0e7071ce8f Ticket #968: Fixed WMME factory initialization to just return PJ_SUCCESS when no audio device is installed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2941 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-13 11:19:57 +00:00
Benny Prijono fe50c9ecfe Ticket #411: Cannot update account presence's status while previous PUBLISH is in progress (thanks Olivier Beytrison for the report)
- enable request queueing. If PUBLISH is to be sent while another one is still in progress, queue the request and send it later when the ongoing request completes
 - this behavior is controlled by new pjsip_publishc_opt structure to control session's options
 - default behavior is to queue the request


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2940 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-12 07:44:14 +00:00
Benny Prijono 6ad776630f Related to ticket #411 (Cannot update account presence's status while previous PUBLISH is in progress):
- Crash in timer if publication session is terminated prematurely. To reproduce: publish two events in quick successions, e.g. by pressing "t" in pjsua couple of times. The publication session will be terminated with PJ_EBUSY status, and crash may occur when timer heap is polled.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2939 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-12 01:27:40 +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
Benny Prijono 2c91aa2368 Ticket #941: Lots of compilation wanings in libg7221 in basic_op.h with gcc
- set default inlining behavior for all basic_op functions to disabled


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2937 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-11 04:55:34 +00:00
Benny Prijono 196eabdf3d Ticket #965: Receiving (malformed) re-INVITE with the same Via branch parameter value as previous INVITE would raise assertion (thanks Daniel Nanassy for the report)
- also fix possible crashes when UAS transaction initialization fails for some reason


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2936 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-10 13:36:43 +00:00
Benny Prijono 9378ea1dbb Ticket #966: Bad RPID <person> id attribute generation (thanks Filipe Figueiredo for the report)
- make sure the id starts with letter


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2935 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09 13:17:56 +00:00
Nanang Izzuddin dedcdf0ab3 Ticket #954: Added missing fix in r2933, updating local SE (to a value less than local Min-SE) should also update local Min-SE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2934 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09 12:31:59 +00:00
Nanang Izzuddin 346d6ec921 Ticket #954: Updated session timer to tolerate 'bad' SE (less than Min-SE specified in request) in 2xx response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2933 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09 12:19:35 +00:00
Benny Prijono 7a6b0847c2 Fixed ticket #917, #936, and #967:
- #917: CANCEL may be sent to different servers than the INVITE when DNS SRV is used (thanks Alexei Kuznetsov for the report)
 - #936: CANCEL must be sent with TCP if the INVITE was sent with TCP because of 1300 bytes message size/MTU limit (thanks Johan Lantz for the report)
 - #967: Wrong Route header generation in CANCEL request with strict route

Save the server address(es) found by resolution process to tx_data, which is copied to CANCEL request. CANCEL request then uses this address rather than starting a fresh server resolution.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2932 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09 12:11:07 +00:00
Benny Prijono f7bcbe3bdf More ticket #960: STUN compatibility problem with RFC 3489 servers (in encoding SERVER-NAME or SOFTWARE attribute)
- rollback the previous fix in r2916 since it is broken. It fails various authentication scenarios due to alignment of USERNAME attribute
 - this fix only applies old alignment rule to SERVERNAME attribute or when STUN magic is not used in the message
 - also disabled test vectors from draft-denis-behave-rfc3489bis-test-vectors-02, it fails with this fix


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2928 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-07 08:38:02 +00:00
Benny Prijono 078497473b Ticket #964: Assertion when receiving SDP media with port 0 and without rtpmap attribute for the dynamic payload type formats (thanks Andrey Kovalenko for the report)
- added SIPp scenario to test it with re-INVITE
 - minor: SDP parsing allow the last line without newline (required for SIPp)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2927 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-06 13:33:21 +00:00
Nanang Izzuddin 9d86462106 Ticket #964:
- Fixed creating media answer in SDP negotation to just clone the offer (and update media direction) when media offer specifies port 0 (media inactive).
 - Added pjsua python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2926 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-06 11:29:14 +00:00
Nanang Izzuddin fa17c85a2f Misc fix (#951): WMME dev should zero-fill WAVEFORMATEX as much as WAVEFORMATEX struct size, instead of just PCMWAVEFORMAT size, as it potentially leads to WAVERR_BADFORMAT when it is used in opening audio device (thanks Johan Lantz for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2925 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-05 18:13:08 +00:00
Benny Prijono ea4b439975 Misc (ticket #951): increase CSeq on retrying MESSAGE request due to 401/407 response (thanks Rafael Maia for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2923 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-01 14:17:49 +00:00
Benny Prijono e0351cb7c7 Ticket #960: STUN compatibility problem with RFC 3489 servers (in encoding SERVER-NAME or SOFTWARE attribute)
- now always set string attribute's length to 4-bytes aligned



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2916 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-01 06:06:01 +00:00
Benny Prijono 828c761a14 Fixed ticket #959: Assertion upon receiving malformed SIP messages (thanks Andrey Kovalenko for the report)
- transaction checks for the method before processing incoming ACK request
 - transport layer checks the validity of status code in the response
 - added SIPP scenario to reproduce the bad ACK request


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2915 74dad513-b988-da41-8d7b-12977e46ad98
2009-09-22 17:56:44 +00:00
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
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 5f1991706d Misc (#951): Updated the doxygen comment/documentation in pj_gethostname() that specying IPv4 address will fail on some platforms (e.g. Windows). Thanks Robert Cichielo for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2908 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-22 11:18:50 +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
Benny Prijono 44afb0da30 Fixed ticket #953: ICE may find the wrong best candidate (thanks John Ridges for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2905 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-20 22:42:29 +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 0fd63e81dc Misc #951: use UPPERCASE characters in transport type in SIP Via header, some endpoints complain about it (thanks Tzury Bar Yochay and Alain Totouom for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2903 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-19 09:39:17 +00:00
Benny Prijono 06ac1f1640 Changed version to 1.4-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2902 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 22:03:00 +00:00
Benny Prijono 295f2cee40 Changed version to 1.4
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2900 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 21:30:15 +00:00
Nanang Izzuddin 3d397bc026 Misc fix (ticket #915): Updated VS2005 pjproject-vs8.sln removing platform 'mixed platform'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2899 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 21:24:10 +00:00
Benny Prijono b96ee6a411 Misc (ticket #915): removed mention of version number in PJSIP (it's written 0.5.9!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2898 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 20:54:31 +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 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
Nanang Izzuddin ae1c6157a9 Ticket #866: Fixed compile error caused by implicit conversion from void* in test_stun_on_status().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2895 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 16:30:04 +00:00
Nanang Izzuddin c549094ea0 Ticket #948: Fixed bug Replaces extension stops functioning after the library is restarted, by adding deinit module function and register it into atexit.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2894 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 15:59:21 +00:00
Nanang Izzuddin f9680d28ce Ticket #833: Fixed bug session timer won't work properly after pjsua-lib restarted, by adding deinit module function for session timer and register the deinit function into atexit.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2893 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 15:56:18 +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 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 71a20b1e6d Ticket #833: Updated previous fix for Session Timer (timer callback gets pending INVITE is in progress), instead of just quitting the callback, it may be better to reschedule the timer (for five seconds).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2890 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 14:42:33 +00:00
Nanang Izzuddin bcc5768b12 Ticket #833: Fixed bug in session timer, timer callback shouldn't perform re-INVITE or BYE when there is pending INVITE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2889 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 12:59:21 +00:00
Nanang Izzuddin 1ff605d211 Ticket #946: Fixed Symbian address resolver to have PJ_HAS_IPV6 check, so it will not try to resolve IPv6 address family when IPv6 is not enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2888 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 11:29:39 +00:00
Benny Prijono d64c150aa2 Ticket #945: Account config may not get initialized with default values if pjsua_acc_config_default() is called before pjsua_init()
- added call to pjsua_config_default() in init_data(), so the global config is now initialized in pjsua_create()


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2887 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 10:42:55 +00:00
Benny Prijono fe73251486 More #935: don't call pj_sockaddr_init() for PJ_AF_INET6 if IPv6 is not enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2886 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 10:10:31 +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 28a48221c1 Misc (#915): several fixes on the python unit tests on Linux:
- added Makefile for cmp_wav and modified the test script
 - test 999: MESSAGE without body is now allowed


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2884 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 08:29:47 +00:00
Benny Prijono 0c9015781c More ticket #930 (New PJSUA-LIB account option to add user defined parameters to the Contact header)
- Fixed test failure in pjsip_test, due to Contact URI is now interpreted as Contact header


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2883 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-15 11:00:26 +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
Nanang Izzuddin 756da44bbf Ticket #877: Fixed bug flip-flop pools shouldn't be swapped when SDP negotiation fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2879 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-14 13:23:22 +00:00
Benny Prijono f561b7ef3b Fixed ticket #939: Throwing exception inside exception handler will cause infinite loop (thanks Roman Puls for the report)
- exception handler is now popped from the stack immediately in PJ_THROW


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2878 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-14 10:41:00 +00:00
Benny Prijono 840c3d2822 Better fix for ticket #938: Presence PIDF document may be rejected by presence servers that implement strict XML checking (thanks Johan Lantz for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2877 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-13 16:17:51 +00:00
Benny Prijono 6f54e8d1f5 Fixed ticket #938: Presence PIDF document may be rejected by presence servers that implement strict XML checking (thanks Johan Lantz for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2876 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-13 16:05:55 +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
Benny Prijono 971a287a6e Misc (#915): removed unused fields (refresh_tm and hangup_tm) from pjsua_call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2874 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-13 15:55:47 +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 05eb3e357e Ticket #915 (misc fixes):
- fixed wrong doxygen comment for pj_list_empty() function (thanks Roman Puls for the report!)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2872 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 22:31:49 +00:00
Benny Prijono a248b95705 Ticket #933: Incoming OPTIONS may trigger assertion if it arrives when PJSUA-LIB is being shutdown (thanks Johan Lantz for the report)
- destroy the media subsystem after busy_sleep(1000) in the shutdown sequence
 - also handle the case when OPTIONS arrives just when PJSUA-LIB is being initialized and media transport is not ready (in this case just reply OPTIONS without message body)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2871 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 22:28:47 +00:00
Nanang Izzuddin fc9efffbae Ticket #833: Updated Session Timer to keep the refresher role unchanged on any refreshes, by timer or manual.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2870 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 19:04:02 +00:00
Benny Prijono 40d62b6077 Ticket #877: Memory consumption of the invite session grows indefinitely if call is running for long period of time and with many re-INVITES
- introducing flip-flop pools in the pjsip_inv_session. There are two additional pools created, and one of them will be reset everytime SDP negotiation is done to release memory back to the OS


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2869 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 17:53:47 +00:00
Nanang Izzuddin e5fe420431 Ticket #931: Fixed logging for non-multithreading platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2868 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 17:50:52 +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 d7d58ca1ad Misc (ticket #915): enlarge the column for pool name in pj_pool_factory_dump() output
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2866 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 17:24:40 +00:00
Nanang Izzuddin 91ce6e4614 Ticket #833: Fixed pjsip_timer definition (should not in a typedef).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2865 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 11:23:39 +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
Benny Prijono 9f0ef0908f Ticket #935: new pj_sockaddr_parse2() API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2863 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 10:56:06 +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 9b93f8696f Ticket #833:
- Updated build config for VS6, Symbian, and Makefile for Session Timer.
 - Fixed C/C++ cross-linking problem on some compilers (e.g: Symbian GCCE).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2861 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 18:21:13 +00:00
Nanang Izzuddin 5ea794187b Ticket #930: Fixed compile error for C++ (missing explicit casting from void*).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2860 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 18:10:15 +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
Nanang Izzuddin cffb123faf Misc fix (ticket #915): Fixed bug in checking transaction registration with same key, passing wrong pointer of transaction key.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2857 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 12:36:49 +00:00
Nanang Izzuddin 5d5a20ea15 Ticket #934: Fixed pjsip_inv_verify_request2() to also checks all registered extensions (via pjsip_endpt_add_capability()).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2856 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-06 16:04:20 +00:00
Nanang Izzuddin 5af37ffc77 Ticket #930:
- Updated semantic of contact param in functions pjsip_dlg_create_uac(), pjsip_dlg_create_uas(), pjsip_endpt_create_request() and also variable pjsua_acc.contact to be Contact header value (was Contact URI).
 - Updated docs related to above modifications.
 - Fixed pjsua_im_send() in generating contact header, it should use pjsua_acc.contact instead, if it is set.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2855 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-05 18:41:23 +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
Benny Prijono b1a3e73533 Ticket #931: Logging function may infinitely recursively calls itself on Windows Mobile (thanks Emil Sturniolo for the report)
- Added feature to temporarily suspend the logging facility while we're in the pj_log() function. The suspension will be thread specific if the platform supports it.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2853 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-05 10:58:02 +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 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 6139a40bc5 Ticket #928: Error linking PJSIP due to inclusion of aes_tables.c in libsrtp (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2849 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-31 09:55:13 +00:00
Benny Prijono 7bc692406d Ticket #927: PIDF timestamp is not added to the tuple (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2848 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-30 19:45:10 +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 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 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 be6d5db124 Ticket #922: Option to enable mutex related logging to assist troubleshooting concurrency problems
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2843 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-22 11:12:35 +00:00
Benny Prijono f940be43f2 Ticket #921: New logging option/flag to include caller thread ID
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2842 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-21 12:20:17 +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
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 e25fe6f844 Sound device is not automatically started after pjsua_set_no_snd_dev() is called, even after pjsua_set_snd_dev() is called
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2837 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-16 17:52:08 +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
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
Benny Prijono 169f92c7e0 Ticket #916: Crash in TURN client when TCP connection is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2831 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-10 15:38:19 +00:00
Nanang Izzuddin ab2e716896 Misc fix (#915): Moved a call to dump_check() in ice_session.c to be inside the log printing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2827 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-02 11:09:23 +00:00
Benny Prijono 25cb51dafc Ticket #913: Concurrency problem in select ioqueue may corrupt descriptor set
- fixed the concurrency problem
 - also fixed ioqueue unregister test in pjlib-test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2826 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-02 08:24:22 +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
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
Benny Prijono 384a6222be Related to #911:
- added SIPp scenario for scenario when the first NOTIFY immediately terminates the subscription


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2823 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 13:49:54 +00:00
Benny Prijono ce00fa0cef Ticket #911: Crash when receiving NOTIFY after subscription is terminated (thanks Johan Lantz for the report)
- fixed the bug by not processing the NOTIFY if the subscription is already terminated
 - also added SIPp scenario to reproduce the bug


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2822 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 13:47:44 +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 45fe2e81e2 Ticket #906: Transaction is not destroyed when transport timeout event comes later than transaction timeout (thanks Norma Steveley for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2797 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-25 10:05:18 +00:00
Benny Prijono 324fccc932 Changed version to 1.3-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2796 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-25 08:08:35 +00:00
Benny Prijono 3bbe6639c2 Changed version to 1.3
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2786 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-23 12:40:42 +00:00
Benny Prijono 2523a84c31 Ticket #894: fixed failed pjnath ice test due to too many network adapter installed in the host
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2785 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-23 12:08:20 +00:00
Benny Prijono 4fd2bfe861 Ticket #894: pjnath test failed on ICE test if the host has three or more network adapters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2784 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 21:17:16 +00:00
Nanang Izzuddin d1f65b068d Ticket #893: Fixed timer test for Symbian to use Active Scheduler poll, instead of timer poll.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2783 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 19:33:40 +00:00
Benny Prijono c17486803a Ticket #891: fixed deadlock on pjlib-test ioqueue unregister stress test. This seems to have fixed the Bus error too
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2782 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 19:18:55 +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 6a65a7da5f Ticket #890: pjlib-test failed on select() test Windows Vista multi-core
- Added pj_thread_sleep(10) before calling sleep(). Tried with other ways too but this seems to be appropriate, as in the real application this shouldn't matter


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2778 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-19 09:38:40 +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 60141e711a Ticket #892: Added IPv6-enabled check (compile-time) in stun test vector containing IPv6 data, also added more run-time checks in stun fingerprint test internal.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2775 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-18 14:04:44 +00:00
Benny Prijono 1572cd6e29 Ticket #889: TURN client ignores the allocation parameter specified by application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2774 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 19:20:11 +00:00
Benny Prijono d4afaaa514 Ticket #888: TURN client allocation failure when it receives multiple 438/Stale Nonce responses (thanks Peter Livesey for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2773 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 19:14:20 +00:00
Nanang Izzuddin f84d9ba019 Ticket #887: Minor update: added app registration info for Symbian pjlib-test, so there will be shortcut when installed on device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2772 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 18:30:45 +00:00
Benny Prijono d77e07b504 Ticket #758 (Problem with TCP transport on Symbian)
- fixed TCP recv() to use RecvOneOrMore()
 - fixed activesock unit test in pjlib-test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2771 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 13:31:13 +00:00
Benny Prijono d4b0b1d86c More ticket #878:
- pj_sockaddr_parse() is unable to parse "localhost" on Symbian, so disable the test in pjlib-test



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2770 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:38:58 +00:00
Benny Prijono f70f63935b Part of ticket #887:
- added pj_shutdown() in pjlib-test's test.c
 - refactor main_symbian.cpp (it's not been used for a while)
 - compilation error/warning about initializing pj_str_t struct from non-constant value



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2769 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:36:36 +00:00
Benny Prijono 1e6be1c564 Ticket #887: Re-enable compile as C++ option for libraries as part of making exception work in Symbian
- also added pjlib-test in bld.inf
 - added pjlib-test.pkg
 - changed hash.c to hash_test.c in pjlib_test




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2768 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:34:18 +00:00
Benny Prijono e11dbee073 Misc fix (#838): fixed warning about unitialized status variable with gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2767 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:18:42 +00:00
Benny Prijono 761e1415a6 Misc fix (ticket #838): compilation warning when int is not typecasted to pjsip_transport_type_e enum
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2766 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:13:46 +00:00
Nanang Izzuddin 61d351c9ae Ticket #862: Updated pjsua python test for srtp with crypto tag zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2765 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:00:47 +00:00
Nanang Izzuddin 560e286321 Ticket #873: Minor update: cleaned up compile warnings of undefined function.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2764 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 10:37:18 +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
Benny Prijono 28add7efef Ticket #873: Include the parsed XML tuple in the pjsip_pres_status, and include it in the pjsua_buddy_info in PJSUA-LIB, in case the PIDF document contains other info that is needed by application (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2762 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-15 16:03:40 +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 7082b26a40 Ticket #882: Added check of active call count before auto-close sound device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2758 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-12 11:15:08 +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 816f646bd0 Ticket #831: Added compile-time option to disable/prevent transport switching to TCP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2756 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-08 15:30:38 +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 b4d22b002c More ticket #869: Added PJSIP_PUBLISHC_DELAY_BEFORE_REFRESH configuration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2754 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-05 16:10:36 +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 e086013e1a Ticket #880: Pressing call hold twice in pjsua will cause call to be unheld
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2752 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-05 10:14:20 +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
Benny Prijono 19eeb6e3b2 Ticket #860:
- will send SUBSCRIBE to refresh REFER subscription (not REFER!), only when required (such as when call transfer is running for longer than REFER subscription expiration, hence need to be refreshed)
 - replaced hardcoded REFER subscription duration (600s) with a macro, {{{PJSIP_XFER_EXPIRES}}}.
 - when NOTIFY with "200 OK" sipfrag body is received and subscription state is not terminated, send SUBSCRIBE with Expires=0 to terminate the REFER subscription
 - for transferee, terminate the subscription in CONNECTING state and not in CONFIRMED state. Terminating the subscription in CONFIRMED state causes redundant NOTIFYs with "200 OK" sipfrag body to be sent, one with active subscription and another with terminated state.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2750 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 22:16:47 +00:00
Benny Prijono 7764f17927 Misc (ticket #838):
- protect pj_strdup() for case when source and destination string are the same pointer. Without this, destination string will contain garbage value.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2749 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 22:08:16 +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 1880f91c49 Ticket #861: IPv6: when an IPv6 URI has ";transport=udp" parameter, the resolver will use IPv4 transport and it will fail to resolve the URI
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2746 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 17:35:10 +00:00
Benny Prijono 84d2493f68 Ticket #863: Account may always re-register with IPv6, due to string comparison of IPv6 address. Note: this needs ticket #878)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2745 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 15:51:39 +00:00
Benny Prijono 844f828bf8 More ticket #878 (New PJLIB API to parse socket address string):
- updated PJSUA-LIB to use the new API


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2744 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 15:29:14 +00:00
Benny Prijono 0f4b9db4f4 Ticket #878: New PJLIB API to parse socket address string
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2743 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 15:11:25 +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 23ea21a50c Ticket #876: Second call fails to open the sound device event when --null-audio is set
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2741 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 12:43:06 +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
Benny Prijono 7ee5f5e2e5 Ticket #822: Retransmit provisional response every 1 minute
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2739 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 10:19:44 +00:00
Benny Prijono 58163a211b Misc (ticket #838): removed all Python doxygen comments/documentations from pjsua.h as these has been deprecated by new Python abstraction long time ago
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2738 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 08:40:24 +00:00
Benny Prijono 44e42e152c Misc (ticket #838): added link to the ticket which changed the account re-registration rule
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2737 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 08:37:24 +00:00
Benny Prijono b1c81ece2d Related to ticket #841: fixed one more compilation warning
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2736 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 08:27:47 +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
Benny Prijono 25bc205793 Ticket #870: Changed the mapping of host resolution failure to SIP status code 502 from 503 (thanks Robert Cichielo for the report)
- also fixed client registration to use the reason phrase of the transaction rather than to retrieve the default reason phrase for the status code



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2732 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-02 08:17:56 +00:00
Nanang Izzuddin 97925739aa Ticket #841: Added config to expand G722.1 functions as inline, default value is 1/true (expand as inline).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2731 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-01 16:43:45 +00:00
Benny Prijono cf2e673a4a Ticket #869: Make various event/presence subscription time settings configurable (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2730 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-01 15:39:52 +00:00
Benny Prijono adb0495fa6 More ticket #868: compilation error due to changes in pj_xml_find() function
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2729 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-01 15:31:35 +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
Benny Prijono ecc183e9be Ticket #868: Added functions to search XML child nodes recursively
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2727 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-01 09:28:28 +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
Perry Ismangil 63c6ed33a5 Added copyright statements
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2700 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-17 13:32:54 +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
Benny Prijono 1e08e4fc78 Fixed ticket #845: Crash in 100rel after CANCEL is received and 487 is sent (thanks Gang Liu for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2697 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-13 08:57:38 +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
Benny Prijono c6ff4b837c Ticket #842: Error parsing status line in sipfrag message body in call transfer scenario (thanks Tomáš Valenta for the report!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2695 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 15:55:09 +00:00
Benny Prijono ae720abe87 Minor (#838): updated TURN compatibility to draft-ietf-behave-turn-14 (from draft-turn-13)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2694 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:50:13 +00:00
Benny Prijono 7925fb330a Ticket #840: Update in pjnath-test to support updated TURN draft
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2693 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:14:52 +00:00
Benny Prijono 5c173ccba4 Fixed ticket #839: Crash in TURN lookup_ch_by_addr() function when sending data
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2692 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:11:10 +00:00
Benny Prijono 11e71230ae Minor fixes (#838): const correctness in some function call arguments@
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2691 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:01:21 +00:00
Benny Prijono 5cd804a663 Fixed ticket #836: SHA1 encryption may corrupt STUN packets with MESSAGE-INTEGRITY. Also added unit test to verify this behavior
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2690 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 08:01:56 +00:00
Benny Prijono 8c67a3a1dc Updated version to 1.2-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2689 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 23:16:58 +00:00
Benny Prijono cf4be395c0 Changed version to 1.2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2687 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 21:58:08 +00:00
Benny Prijono dbe3f4b9c8 Ticket #827: Option in PJSUA-LIB logging config to append existing log file (thanks Robert Cichielo for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2686 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 16:56:04 +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 449f85f12c Ticket #829: modify all applications in VS 2005 build settings to depend on libpjproject only.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2684 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 14:26:01 +00:00
Nanang Izzuddin aaba990f2e Ticket #828: Set linking target machine to ARM on WM2003 property sheet.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2683 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 14:13:06 +00:00
Benny Prijono 4578eb5c21 More ticket #825: added pointer to the ticket number in the comment.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2682 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 12:50:29 +00:00
Benny Prijono 53e968d1a5 Ticket #825: FILE_APPEND_DATA is not valid on Smartphone/Pocket PC2003 and Windows Mobile 5, so remove the flag when PJ_WIN32_WINCE is set (thanks Robert Cichielo for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2681 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 12:49:07 +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
Benny Prijono 0f711b4899 Ticket #824: Race condition in sound auto-close feature may cause sound device to not be opened
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2679 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 19:08:43 +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 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
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 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
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
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 d97dfc6ba2 More ticket #774:
- set default compilation flags -O2 for G.722.1 on Symbian



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2671 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-01 14:07:20 +00:00
Benny Prijono e641a74456 Fixed ticket #815: Re-INVITE transactions takes too long to be cleared when failed final response is received, causing application to unable to send subsequent re-INVITE (thanks Ruud Klaver for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2670 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-01 12:01:28 +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 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 dc61a2eeb9 Ticket #757:
- put the default IP as the first host candidate



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2667 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-30 17:14:50 +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 c8fe3df912 Fixed compilation error on Symbian caused by ticket #794
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2665 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 20:56:57 +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 1a2f73913e Ticket #706:
- Renamed test_pjsip.dsp into pjsip_test.dsp.
 - Fixed missing files problem in pjsip_test.dsp and pjsip/build/Makefile caused by renamed directory 'test-pjsip' into 'test' (see r2638/trunk or r2626/vs-reorg).





git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2663 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 12:53:35 +00:00
Nanang Izzuddin 39d733b369 Ticket #762: Cleaned up jbuf.c of unused function jb_framelist_origin().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2662 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 12:37:39 +00:00
Benny Prijono 53984d1923 Ticket #760: Enhancements to PUBLISH management (thanks Johan Lantz for the suggestion)
- Changes in PJSUA-LIB
    - retry with fresh request on 412/Conditional Request Failed response
    - changed default Expires in PUBLISH request to none (we will not put Expires), to avoid getting 423/Interval Too Brief response
    - if the PUBLISH fails for any reason, it will be retried on every PJSUA_PRES_TIMER (default 300 seconds), similar to how failed SUBSCRIBE will be retried
 - Changes to publish.h:
    - added API to add headers in every PUBLISH request
 - Added test scenario in Python unit tests



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2661 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 22:19:49 +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 039081fed9 More cleaning up on compile warning.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2657 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 15:27:09 +00:00
Benny Prijono 27fc143181 Ticket #800: Change in IP address selection algorithm (the pj_gethostip() function):
- putting in weighting mechanism to select the "best" IP to use



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2656 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 13:47:45 +00:00
Nanang Izzuddin 0bf58b4aa0 Cleaned up config's build & deploy settings in configuration manager.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2655 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 11:41:00 +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 33ab7aa799 Added some header files into project.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2653 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 19:08:58 +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 81a99c3d8d Ticket #693: Allow incoming MESSAGE request without message body
- also added SIPp scenario to test this



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2651 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 14:30:10 +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
Nanang Izzuddin 38bf20f0c5 Creating another branch for vs-reorg.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2648 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 11:44:05 +00:00
Benny Prijono 006a4e877d Fixed ticket #506: Behavior when cancelling INVITE before provisional response is received
- do not stop INVITE retransmission
 - updated pjsip_inv_end_session() documentation



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2647 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-26 11:30:22 +00:00
Benny Prijono 99b0437ab4 Fixed ticket #503: Handle the case when CANCEL is responded with 200/OK but 487 is not sent
- added new API pjsip_tsx_set_timeout()
 - set 64*T1 timeout after CANCEL is initiated
 - also added SIPp scenario to simulate the UAS



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2646 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-26 11:02:04 +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
Perry Ismangil f802b56352 #792 work in progress testing sln change: remove solution items and no mixed platforms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2644 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-23 11:54:38 +00:00
Benny Prijono 60e31fc682 Fixed ticket #794: Bug with generating SDP version in origin line (thanks Joel Dodson for the report)
- the INVITE session now correctly uses the SDP offer "fixed" by the negotiator, hence it will have the correct origin fields.
 - removed update_sdp_version() from PJSUA-LIB
 - the negotiator now also fixes the session ID of subsequent answer so that it's identical to the previous SDP



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2643 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-23 11:50:25 +00:00
Benny Prijono 8440eee1bf Part of ticket #780: enhance the PJNATH doxygen documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2642 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 17:20:24 +00:00
Nanang Izzuddin c62cc7736a Ticket #706: Recleaned up configuration manager settings, make sure all platform-config combinations are set up properly.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2641 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 16:59:14 +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 a30474a8ba Ticket #774: Replaced abort() & printf(), which caused linking error on WM platforms, with pj_assert().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2639 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 15:32:12 +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
Nanang Izzuddin 7f32f3e7d8 #792: Fixed base property sheet to reset DeleteExtensionOnClean attribute to default value.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2635 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 10:41:11 +00:00
Perry Ismangil e9ba064439 #792 work in progress testing simple sln change
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2634 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 10:07:14 +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 655032db62 #792: Updated property sheets to put *.pdb file in intermediate dir and disabled incremental linking for release configs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2632 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 19:42:25 +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
Nanang Izzuddin 6745224a1e #792: Updated some VS property sheets.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2624 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 19:21:07 +00:00
Benny Prijono 444e0a3f8b More ticket #774: replaced dependency to STL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2623 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 18:38:15 +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
Perry Ismangil fc428712ea #792 work in progress: wired in property sheets for third_party folder projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2621 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 15:09:55 +00:00
Benny Prijono 8496b93939 More ticket #774: added option to shift PCM input to encoder right by some value (default is 1) to make it compatible with some other app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2620 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 14:19:11 +00:00
Perry Ismangil f96446a045 #792 work in progress: Dynamic and static flags
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2619 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 12:28:21 +00:00
Perry Ismangil 0e9b8e3244 #792 work in progress: Added target CPU macro for wm6-common
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2618 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 12:05:27 +00:00
Benny Prijono 319c8173be More ticket #774: compilation error for VS8 and make build system due to last modifications in libg7221codec and pjmedia_test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2617 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-18 15:15:34 +00:00
Benny Prijono 3594ab35f3 More ticket #774: optimization for siren7/siren14 codecs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2616 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-18 14:29:28 +00:00
Benny Prijono 8604b1413b More ticket #774: added more ITU test vectors for siren codecs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2615 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-18 11:49:54 +00:00
Benny Prijono d4c751e767 More ticket #774: updated VS6, VS8, and Makefile for the Siren7/Siren14 test vectors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2614 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-18 00:34:45 +00:00
Benny Prijono 1dc0da7da7 More ticket #774: added g.722.1c test vectors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2613 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-18 00:12:13 +00:00
Perry Ismangil 7eac4c987e #792 work in progress: new property sheets added as solution items
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2612 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-17 16:58:45 +00:00
Perry Ismangil f41d733bd6 #792 work in progress: new property sheets added as solution items
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2611 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-17 16:54:43 +00:00
Perry Ismangil 8a3641acd1 #792 work in progress: new property sheets added, and inheritance between them established
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2610 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-17 16:50:49 +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
Perry Ismangil 23e33c9c17 #792 work in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2608 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-16 16:31:45 +00:00
Nanang Izzuddin 79a620cc68 Ticket #774: Fixed libg7221codec build config on vs6: dyn-linking for release, include path.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2607 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-16 16:13:38 +00:00
Perry Ismangil e6410c26ca #792 work in progress, solutions loads but then freezes VS. Trying it on other PCs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2606 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-16 10:13:21 +00:00
Nanang Izzuddin 7d8043adc9 Ticket #771 (misc fix): Added G.722.1 codec to mips test, also added macro protections for codec usages.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2605 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 17:56:17 +00:00
Nanang Izzuddin 019e35b55d Ticket #772 (misc fix): Changed var 'test' from a global var to static var, since there was naming conflict with libg7221codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2604 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 17:54:46 +00:00
Nanang Izzuddin 27659816cf Ticket #774: Minor fix, reset mode counter in g7221_init().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2603 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 17:50:50 +00:00
Benny Prijono 181f325ff8 More ticket #780: work on CreatePermission refresh timer in the TURN session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2602 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 17:32:09 +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 70ad1d4966 More ticket #780: updated ICE to issue CreatePermission on the TURN socket before starting ICE negotiation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2599 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 13:36:55 +00:00
Perry Ismangil 9af6406b12 #792 adding base property sheets, also for Win32 and Windows Mobile 6 platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2598 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 10:48:07 +00:00
Nanang Izzuddin 69b69ae4d1 Ticket #788: Updated pjsua_media_subsys_init() to perform SRTP library initialization.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2597 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-14 15:18:30 +00:00
Benny Prijono a5776cbbff Ticket #789: don't call buddy callback after buddy has been deleted (thanks Robert Cichielo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2596 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-14 15:11:23 +00:00
Perry Ismangil 6f44103eed #706 work in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2595 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-14 13:21:31 +00:00
Benny Prijono 176a11fe9c Related to ticket #786: potential memory leak in invite session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2594 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-14 11:14:51 +00:00
Benny Prijono 0bd5eb93b2 Ticket #786: Crash when UAC invite or subscribe session initialization fails (thanks Rostislav Molodyko for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2593 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-14 11:10:31 +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
Benny Prijono d9dd8657e8 More ticket #780: fixed compilation errors due to previous modifications related to TURN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2591 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13 18:40:10 +00:00
Benny Prijono 295bfc1f69 More ticket #780: destroy TURN session if it receives 437 (Allocation Mismatch) response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2590 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13 18:30:49 +00:00
Benny Prijono 0f327c95a5 Ticket #780: Update TURN from draft 09 to draft 13:
- new rules for permissions:
    - permission must be created and refreshed explicitly with CreatePermission
    - transmitting data does not refresh permission
 - attributes changed/added: XOR-PEER-ADDRESS, XOR-RELAYED-ADDRESS, EVEN-PORT, DONT-FRAGMENT
 - attribute(s) removed: REQUESTED-PROPS
 - new status codes: 401 (Forbidden), 507 (Insufficient Capacity)
 - removed status codes: 443 (Invalid IP address), 444 (Invalid Port), 508 (Insufficient Port Capacity)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2589 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13 08:54:10 +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
Nanang Izzuddin 5549667823 Ticket #762: Replaced stricmp() with pj_ansi_stricmp() for cross platform compatibility.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2587 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-08 18:41:32 +00:00
Nanang Izzuddin b070811e2a Ticket #772 (misc): Updated stream_destroy() to call jbuf_destroy().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2586 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-08 18:30:32 +00:00
Nanang Izzuddin 94974cc916 Ticket #762: Updated delay calculation method & added statistic report in jbuf_destroy().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2585 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-08 18:22:31 +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
Nanang Izzuddin ff55744bd4 Ticket #762: Fixed jbuf in handling far sequence jump (the distance is over jbuf capacity) while jbuf is empty.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2583 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-07 23:16:24 +00:00
Nanang Izzuddin b67116c94c Ticket #781: Fixed conf bridge API functions to have mutex protection when accessing ports.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2582 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-07 12:56:02 +00:00
Nanang Izzuddin 97539ce114 Ticket #777: Rechecked & updated audio switch board functions to make sure they have mutex protection in accessing conf ports.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2581 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-07 11:08:21 +00:00
Benny Prijono 0fc2c6bb34 Part of ticket #780 (work in progress): added IPv6 support to various STUN attributes and added the test from draft-ietf-behave-stun-test-vectors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2580 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-07 09:42:58 +00:00
Nanang Izzuddin ad4bb0aa3d Ticket #762: Updated JB test:
- Added support for more scenarios, e.g: frame loss, late, sequence restart, etc.
 - Added automatic test result checks based on specified condition.
 - Updated test data.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2579 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 17:13:33 +00:00
Nanang Izzuddin 127b4dd00d Ticket #762: Major updates on jitter buffer:
- Updated loop condition in put_frame() to avoid possibility of infinite loop.
 - Added JB capabilities to handle sequence restart & jump.
 - Updated jitter calculation, e.g: reset max_hist_level after updating prefetch, avoid updating prefetch when burst level is exceeding max_burst.
 - Updated shrinking method to be less agressive (only shrink JB when JB size is twice larger than burst level).
 - Updated the way JB switching status from 'initializing' to 'processing' by waiting for some OP switch cycles.
 - Few simplifications in framelist process, e.g: replacing fields 'empty' & 'tail' with 'size'.
 - Minor updates: comments, shortened framelist field names, added some JB states for reporting/monitoring purpose.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2578 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 17:05:34 +00:00
Nanang Izzuddin 8caf31cce5 Ticket #772 (misc fix): Updated floating point version of math statistic to return the rounded mean value.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2577 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 16:41:54 +00:00
Benny Prijono 8ba349f211 Misc (ticket #772): added SIPp scenario for forked PRACK
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2576 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 15:41:30 +00:00
Benny Prijono 1f6331a2ea Misc (ticket #772): added several SIPp scenario files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2575 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 15:04:48 +00:00
Nanang Izzuddin 53b597926e Ticket #774:
- Renamed VS6 & VS8 project name/filename: libg7221 --> libg7221codec.
 - SVN things: added "output" dir, updated ignore properties.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2574 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 14:43:29 +00:00
Nanang Izzuddin 1b9f46bdbb Ticket #778: Fixed IPP G722.1 codec to aware about endianness in packing/decoding G722.1 RTP payload.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2573 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 13:52:01 +00:00
Nanang Izzuddin 134989a6f7 Ticket #774: Fixed G722.1 codec to aware about endianness in packing/unpacking RTP payload (the underlying implementation, ITU impl ref, works with 16-bits coded data).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2572 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 11:45:25 +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 f87f67cd97 Ticket #768: Media initialization returns error if no audio device is detected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2570 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 10:02:53 +00:00
Benny Prijono d0ebbc59c5 Misc (ticket #772): fixed missing dependency to pjmedia-audiodev in the applications makefiles
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2569 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 10:00:56 +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
Nanang Izzuddin f484a1df85 Ticket #774: Fixed generation of G722.1 modes list in enum_codec().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2565 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-02 10:41:22 +00:00
Benny Prijono ca97b5f415 More ticket #774 (re: g722): some modifications in VS6 projects/workspace
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2564 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-01 15:48:35 +00:00
Nanang Izzuddin 57b8857010 Ticket #774:
- Initial source of G.722.1/Annex C integration.
 - Disabled some "odd" modes of L16 codec (11kHz & 22kHz mono & stereo) while releasing some payload types.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2563 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-01 12:05:34 +00:00
Benny Prijono 56aaca9ec5 Misc (ticket #772): added missing hash_test.c in pjlib-test eVC4 project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2562 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-30 18:28:52 +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
Benny Prijono f1a47b840c Ticket #764: Bug with milliseconds time resolution in WinCE/Windows Mobile targets (thanks Johan Lantz for the report)
- use QueryPerformanceCounter() (via pj_get_timestamp() API) to emulate the msec precision)
 - more strict tests in pjlib-test



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2560 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-30 18:22:16 +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 f46a69b069 Ticket #771 (auddev-misc): Fixed handle leak in WMME, handle of thread quit event never got closed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2557 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-27 15:36:18 +00:00
Nanang Izzuddin 719f7396dd Ticket #771 (auddev-misc): Fixed WMME impl to allow buffer burst processing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2556 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-27 15:22:35 +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
Benny Prijono ccf3e24e3d Ticket #769: Bug in select ioqueue: event counter may exceed maximum value, causing stack corruption (thanks Joel Dodson for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2554 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-26 11:16:06 +00:00
Benny Prijono fbb6810c9a Updated version to 1.1-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2526 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-19 19:56:28 +00:00
Benny Prijono 829db09d3c Changed version to 1.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2524 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-19 15:10:12 +00:00
Benny Prijono f6945dddd6 Failed in pjnath-test due to ticket #742
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2523 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-18 18:56:25 +00:00
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
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
Benny Prijono 8f2a0504b5 Fixed ticket #689: Deadlock caused by ICE media transport (thanks Alain Totouom for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2419 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-12 10:06:04 +00:00
Nanang Izzuddin 1a9b7a2f39 Ticket #680: Wrong frame size passed to sound port player callback by Symbian APS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2418 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-06 11:49:54 +00:00
Benny Prijono 459a0ff755 -
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2417 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-05 15:31:25 +00:00
Nanang Izzuddin 58704d502a Ticket #680:
- Fixed Symbian APS G.711 frame size variation issue.
 - Fixed APS implementation to regard 'samples_per_frame' setting.
 - Added APIs for u-law/a-law <-> PCM bulk conversions.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2416 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-05 15:27:02 +00:00
Benny Prijono f84081dfcf -
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2415 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-04 21:28:10 +00:00
Benny Prijono 8a0e97b2c9 Fixed exception error on the Python test due to child process already exiting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2414 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-04 20:15:37 +00:00
Benny Prijono bf7b842aa7 Added dummy configure test for VS and Symbian tests and don't stop the whole tests when exception thrown from ccdash
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2413 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-03 23:53:05 +00:00
Benny Prijono c543e9eea0 Support for IPP version 6.0 (the usc.lib has been renamed to speech.lib for Windows)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2412 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-03 12:19:53 +00:00
Benny Prijono 456e58f013 Fixed error with platform detection in cdash test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2411 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-02 18:51:25 +00:00
Benny Prijono d5962679b7 Test refinements for mingw etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2410 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-02 18:15:07 +00:00
Benny Prijono e1e6d513ba Updated to support IPP 6.0 (the usc.lib was renamed to speech.lib in IPP 6.0)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2409 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-02 15:17:47 +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 b9bcb83944 Fixed wrong exe output name in pjmedia-test VS8 project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2406 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 15:00:04 +00:00
Benny Prijono fee946baa1 Added Symbian test configurator
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2405 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 00:11:17 +00:00
Benny Prijono 0b262934c6 CDash test for MSVC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2404 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-30 16:19:38 +00:00
Benny Prijono 1ac5bfa095 Removed the check for NDEBUG (it failed the test on release mode)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2403 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-30 16:19:06 +00:00
Benny Prijono df26901c36 Added pjmedia-test, pjnath-test, and pjsip-test to VS8 solution, and changed the exe output names to the more standard naming convention (for the cdash test)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2402 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-30 16:18:28 +00:00
Benny Prijono 9be224f1e8 Added copyright text in python test files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2401 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 17:57:13 +00:00
Benny Prijono 3978603f6a Changed eol-style on README.TXT, and clean up cfg_site_sample.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2400 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 15:04:00 +00:00
Benny Prijono 49048d9f04 Added cdash framework for pjsip tests. Currently there is only test framework for GNU
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2399 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 14:56:32 +00:00
Benny Prijono 43b6ecea36 Added --list argument to list tests in runall.py, and fixed build.mak location error due to moving test directory last time
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2398 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 14:52:29 +00:00
Benny Prijono fb1edcb06d Changed version to 1.0.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2396 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-24 10:04:24 +00:00
Benny Prijono 9c3aa5da4f Ticket #688: Memory leak on Solaris 10 with pjlib's mutex (thanks Andrey Kobtsev for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2395 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-24 09:17:08 +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
Benny Prijono 868fbc9dba Removed global optimization setting from libsrtp VS project since it causes link warning with VS 2005 SP1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2393 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 15:47:57 +00:00
Benny Prijono 945aeb2681 Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2392 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-22 18:54:58 +00:00
Nanang Izzuddin 9522ff22fa Minor update on resolver test to use 'unrestricted' ports (>1024) in socket bindings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2391 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 15:08:44 +00:00
Benny Prijono 2929e380d2 More ticket #686: bug in handling strayed callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2390 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 14:37:32 +00:00
Benny Prijono a199cb792d Added note about what may be causing WSAEINVAL error in pj_inet_pton() with IPv6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2389 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 14:36:08 +00:00
Benny Prijono e3b0be2431 Minor fix to avoid uninitialized variable warning with MSVC 6 release build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2388 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 14:34:48 +00:00
Benny Prijono c693f4d6e5 Fixed ticket #686: Failure to cancel outstanding DNS SRV query job (API change)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2387 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 12:26:42 +00:00
Nanang Izzuddin 838cb32cc4 Cleaned up compile warnings (on gcc 4.0.1).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2386 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 17:52:57 +00:00
Benny Prijono 20da799a33 Fixed minor gcc compilation warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2385 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 16:48:43 +00:00
Benny Prijono 0ec490672d Added commdb.lib and apengine.lib to symbian_ua.mmp for the (optional) IAP selection feature
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2384 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 13:27:32 +00:00
Benny Prijono de74a0234d Changed error log verbosity from 4 to 2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2383 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 13:26:34 +00:00
Benny Prijono 4b55e0aa64 Some minor changes: use log level 3, and change some default settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2382 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 13:22:52 +00:00
Benny Prijono 55c6ecc903 Ticket 685: Crash or assertion on debug mode when processing large SIP packet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2381 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 13:15:32 +00:00
Benny Prijono 2285e7e24a Ticket 684: protect the memory allocation for TX packet with try/catch, and fixed various transmit data buffer leaks when transmission fails immediately
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2380 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-17 14:28:18 +00:00
Nanang Izzuddin 82f7a4147a Ticket #675:
- Fixed ICE+STUN panic E32User-CBASE 46, the problem seems to be inside the Symbian version of pjsua_handle_events().
 - Updated minor things, e.g: compile warnings



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2379 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-17 11:36:22 +00:00
Benny Prijono 0b44035669 Workaround for ticket #683: Crash/segfault on pjmedia_wsola_create() on ARM9 platform with GCC optimizations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2378 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-12 14:59:38 +00:00
Nanang Izzuddin 6e7e9cd374 Minor update on silence detector to increase trace verbosity level.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2377 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-11 17:31:05 +00:00
Nanang Izzuddin 74f874627d Ticket #661: Fixed transport ICE in verifying possibilities of RTCP settings in the SDP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2376 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-11 17:25:50 +00:00
Benny Prijono d8cd6b9b48 Ticket #682: New API to register (external) Python thread (thanks Johan Risberg for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2375 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-11 11:18:33 +00:00
Benny Prijono 21f871fbca Ticket #681: Bugs in sending and receiving instant messages in Python wrapper (thanks Johan Risberg for the patches)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2374 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-11 11:03:21 +00:00
Benny Prijono 30fe485f6f Ticket #672: Option to add custom parameters in the account Contact URI
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2373 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-10 16:54:16 +00:00
Nanang Izzuddin 98bbd0fe10 Fixed missing explicit type-cast that may cause build-fail (on C++ compiler).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2372 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-05 13:56:05 +00:00
Benny Prijono 08a48b8ccf More ticket #10: changed to signature of the redirection callbacks to make it more natural to use
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2371 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-27 12:42:07 +00:00
Benny Prijono 5e51a4e1d8 Ticket #10: handle redirection response in the invite session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2370 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-27 00:06:46 +00:00
Benny Prijono 6c7cf562a3 Small modifications to level.c sample to print out the timeline and linear level
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2369 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-19 14:48:48 +00:00
Nanang Izzuddin 6ca4318689 Ticket #676: Updated default value of maximum silence theshold setting to MAXUINT16+1 (feature is disabled).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2368 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-19 14:48:10 +00:00
Nanang Izzuddin 5e401c312b Ticket #676: Updated silence detector to regard max silence threshold setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2367 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-18 13:44:19 +00:00
Nanang Izzuddin b365e9247c Fixed bug of unresetted static var dev_info that caused device name gets repeated on second call or soon of snd_init() (thanks Steven Back for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2366 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-12 10:48:05 +00:00
Nanang Izzuddin 29341f76fa Ticket #671: Updated conference to disable skipping a frame which has very low audio signal.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2365 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-11 12:25:02 +00:00
Nanang Izzuddin ce2c5f1cdf Ticket #674:
- Updated SDP negotiation module to allow special treatment for AMR negotiation.
 - Fixed SDP negotiation when it prefers local codec order it gets wrong in identifying the remote offer.
 - Added some test scripts to test AMR negotiation.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2364 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-11 11:51:18 +00:00
Nanang Izzuddin 0b8f4ca2ed Ticket #670: Minor update on naming of AMR helper and updated AMR in IPP codecs to enable octet-align from FMTP settings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2363 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-11 11:25:13 +00:00
Benny Prijono 8fcb4336ec Ticket #657: (Partial early media forking support) renegotiate SDP upon receiving forked 2xx response after 183 is received
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2362 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-31 18:01:48 +00:00
Benny Prijono 14e6741102 Ticket #673: rollback r2360, and implement new fix for Race condition may cause crash in SRTP transport ticket
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2361 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-31 17:54:14 +00:00
Benny Prijono c92a1af3a1 Ticket #673: Crash in SRTP transport when receiving stray RTP/RTCP packet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2360 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-31 16:26:27 +00:00
Nanang Izzuddin 35e01de01e Ticket #670:
- Configurable setting to enable/disable AMR bitstream reordering (sensitivity order to/from encoder bits order).
 - Updated AMR codec to regard in-band Change Mode Request from remote encoder.
 - Updated AMR settings (octet-align, etc) to be configured upon codec opening, instead of hardcoded in the encode, decode, parse.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2359 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-29 10:17:02 +00:00
Nanang Izzuddin d55553a1a0 Ticket #670: Added AMR codec helper and updated IPP codecs to use the AMR codec helper.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2358 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-28 02:24:46 +00:00
Nanang Izzuddin 128a585ed1 Minor fix on Symbian sound latency info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2357 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-27 09:05:56 +00:00
Benny Prijono e6a5f8ef79 Ticket #667: Padding issue when the old/RFC 3489 STUN client is communicating with new/STUNbis STUN server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2356 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-23 11:31:11 +00:00
Nanang Izzuddin 4bc68f8622 Ticket #662: Updated pjmedia transport ICE to handle missing IP address part in SDP a=rtcp attribute.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2355 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-21 17:38:42 +00:00
Nanang Izzuddin a7ddf94d2c Ticket #666: Updated SDP parser to allow trailing newlines.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2354 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-21 16:48:49 +00:00
Nanang Izzuddin 49f057b054 Ticket #558: Added srtp_deinit() function and registered this with pj_atexit().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2353 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-21 14:29:47 +00:00
Benny Prijono c26700c386 Modified keep-alive packet content for TCP/TLS from CRLF to double CRLF
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2352 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-17 07:41:25 +00:00
Benny Prijono 4c82c1e723 Ticket #665: Wrong Contact URI generated when TLS transport is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2351 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-16 08:14:51 +00:00
Benny Prijono ceec591c80 Changed version to 1.0-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2350 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-09 16:24:59 +00:00
Benny Prijono a483e7f33d Changed version to 1.0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2348 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-09 14:40:33 +00:00
Nanang Izzuddin 2976a2e588 Ticket #646: Fixed panic E32USER-CBase 66 and leak of undeinit'ed stdlib when quitting symbian_ua_gui.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2347 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-09 14:19:34 +00:00
Benny Prijono 02e850458b Added more targets to python Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2346 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-08 11:57:25 +00:00
Nanang Izzuddin cd27de66ca Ticket #631: Fixed transport ICE returning zero/invalid remote RTP address when ICE is active.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2345 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-08 10:14:03 +00:00
Benny Prijono fb947dd181 Added pjmedia-test to build system and changed it to not always wait for keyboard input to finish the test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2344 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-07 20:23:01 +00:00
Nanang Izzuddin 6aa4495bdd Removed 'odd' clock rate from sound device clock rates list.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2343 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-07 12:42:24 +00:00
Nanang Izzuddin ee340b36d9 Fixed G.722 codec that is suppossed to work with 14 bits PCM for its input & output (thanks Olle Frimanson for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2342 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-06 18:42:13 +00:00
Benny Prijono 0789519b6a Ticket #655: Compilation error on Linux when PJ_HAS_POOL_ALT_API is used (thanks Gang Liu for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2341 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-02 22:13:01 +00:00
Benny Prijono bf7d2225d9 Ticket #654: Error when falling back to secondary TURN server (thanks Nicolas Fauvel for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2340 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-02 17:54:40 +00:00
Benny Prijono ec575c5624 Ticket #653: Add WinCE workspace/project files for pjsip unit tests (thanks Seth Hinze for the contribution)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2339 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-01 10:00:37 +00:00
Benny Prijono 05f924e423 Ticket #652: Add WinCE workspace/project files for pjnath unit tests (thanks Seth Hinze for the contribution)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2338 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-01 09:58:42 +00:00
Benny Prijono 179ab74df4 Ticket #651: Added WinCE workspace/project files for pjlib-util unit tests (thanks Seth Hinze for the contribution)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2337 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-01 09:56:09 +00:00
Benny Prijono 1b69e24d05 Ticket #650: Unit test failure in the timestamp test on very fast CPU (thanks Seth Hinze for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2336 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-01 09:02:12 +00:00
Benny Prijono b3582cf6cf Ticket #649: Build error in wav_writer.c in big endian systems (thanks Seth Hinze for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2335 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-01 08:45:33 +00:00
Benny Prijono 1b916e8670 Changed version to 1.0-rc4-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2334 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-28 10:59:55 +00:00
Benny Prijono 7580d3f242 Changed version to 1.0-rc4
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2332 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-28 09:27:33 +00:00
Benny Prijono e27461311d Fixed ticket #644 and 648 again (hopefully once and for all): build error on VS6 with built-in SDK and on PocketPC 2003 SDK since they don't have multicast related socket options
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2331 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-27 13:16:35 +00:00
Nanang Izzuddin b79ff937ff Fixed previous accidental check in r2329.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2330 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-27 12:50:12 +00:00
Nanang Izzuddin fa144d5200 Fixed assertion in echo suppressor when recording and playing level is equal.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2329 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-27 11:53:39 +00:00
Nanang Izzuddin 741eb2e58b Fixed possible assertion by codec when stereo/multichannel codec is used and stream is about to send keep-NAT-alive packet (thanks Bill Gardner for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2328 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-27 11:50:17 +00:00
Benny Prijono 513d135f98 Fixed ticket #644 and #648: incorrect muticast related socket constant names, missing ws2tcpip.h include causing build error on Mingw, and error building on Visual Studio 6 due to PJ_SOCK_HAS_GETADDRINFO being declared accidentally.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2327 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-27 09:35:34 +00:00
Benny Prijono de6f31c45b Missing PJ_DECL in pjsip_tx_data_create() declaration (thanks Tomáš Valenta for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2326 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-27 08:55:16 +00:00
Benny Prijono 247921bdf1 More ticket #643: added setting to disable this ticket (by setting allow_contact_rewrite to 2)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2325 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-26 22:06:11 +00:00
Benny Prijono 7f5111e6e5 Changed version to 1.0-rc3-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2324 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-25 15:28:42 +00:00
Nanang Izzuddin 013014df61 Ticket #638: Fixed assertion caused by prefetch < min_prefetch (thanks Michael Bradley Jr for the reports).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2321 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-25 11:46:06 +00:00
Benny Prijono 800724d550 Changed version to 1.0-rc3
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2319 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-25 11:21:55 +00:00
Nanang Izzuddin d263f9d1aa Ticket #638: Cleaned up compilation warning in jbuf.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2318 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-25 11:04:49 +00:00
Nanang Izzuddin 883d8de2a0 Ticket #638: Reenable prefetch buffering via initial prefetch setting (set 0 to disable, otherwise to enable).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2317 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-24 17:27:46 +00:00
Benny Prijono 7f630433a1 Ticket #643: Do not try to re-register with a new Contact when the REGISTER response contains private IP address
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2316 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-24 16:52:41 +00:00
Benny Prijono 3c5e28b2f6 Ticket #635: Disconnect the other call leg when multiple 2xx/OK responses to INVITE are received due to forking
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2315 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-24 10:10:15 +00:00
Benny Prijono 189195de83 Fixed bug in pjsip_auth_clt_clone(), the cached_auth list is not initialized in the copy
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2314 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-24 09:51:51 +00:00
Benny Prijono 63bfe7ad00 Ticket #642: Discontinuous tone generation (thanks Olle Frimanson for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2313 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-24 09:38:55 +00:00
Nanang Izzuddin 51f22530a1 Ticket #547: Added DirectX include path from Windows environment settings to libportaudio & pjmedia VS8 build projects.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2312 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-23 20:39:13 +00:00
Nanang Izzuddin 7c0d1b7991 Updated delay buffer to perform shrinking only in the PUT operation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2311 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-23 18:48:56 +00:00
Nanang Izzuddin 19551d6ce7 Ticket #638:
- Jitter buffer shrinking is done based on max_hist_level (recent maximum burst level).
 - Updated jitter buffer to maintain max_hist_level, instead of resetting it each time current level is updated.
 - Updated default jitter buffer size in stream.c from 360ms to 500ms to accomodate more burst level.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2310 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-23 16:55:21 +00:00
Nanang Izzuddin d704a8b6b8 Fixed bug missing reinit med_orig when reinit pjsua media transports.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2309 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-23 16:34:07 +00:00
Benny Prijono d4787668eb More ticket #622: some more fixes to ioqueue_epoll, it passes pjlib-test now (thanks Simon Chen for the patch!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2308 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-23 09:40:11 +00:00
Benny Prijono d61e532783 More ticket #639: fixed warning with gcc about comparison always true
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2307 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-23 09:11:20 +00:00
Benny Prijono e6da48a8d8 Ticket #641: Assertion error when late 200/OK is received after call has been disconnected (thanks Dan Åberg for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2306 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-22 14:36:00 +00:00
Benny Prijono 338153e2b3 More ticket #619: disable fade-in and fade-out if the tone off duration is zero. We assume that application wants to play continuous tone in this case, and the fade in/out feature will cause click noise to be generated
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2305 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-22 09:29:50 +00:00
Benny Prijono 59e9e95ad4 Ticket #640: Crash when receiving ACK with SDP after BYE has been received (thanks Amit Sharma for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2304 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-21 22:55:43 +00:00
Benny Prijono 3c97d9b353 Ticket #639: added torture tests for handling non-ASCII UTF-8 characters in SIP message elements
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2303 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-21 22:01:46 +00:00
Benny Prijono 54f938956f Ticket #639: Assertion in <ctype.h> functions with Visual Studio 2005 when handling non-ASCII characters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2302 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-21 21:11:49 +00:00
Benny Prijono 91d06b6179 Ticket #611: Configuration option to force the route URI to use loose routing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2301 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-20 12:16:56 +00:00
Benny Prijono 9489e7a098 Couple of fixes in ioqueue_epoll for ticket #622 (still not working)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2300 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-19 22:18:50 +00:00
Nanang Izzuddin b51845f64c Fixed pjmedia session bug in getting channel count from SDP for static payload.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2299 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-19 21:18:23 +00:00
Nanang Izzuddin b8c1ebe67a Added missed patch in enabling G.722 PLC: PLC should be enabled in default attribute setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2298 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-19 21:17:30 +00:00
Nanang Izzuddin 49a979b54e Enabled G.722 PLC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2297 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-19 21:10:14 +00:00
Nanang Izzuddin 47d87a677a More ticket #633: Fixed DirectSound implementation to avoid playback buffer read & write cursor race.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2296 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-19 13:28:40 +00:00
Benny Prijono 99eec385bc Ticket #622: initial integration of ioqueue_epoll patch, updated the configure script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2295 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-18 21:22:16 +00:00
Benny Prijono 6ba5f59841 More ticket #619: changed default Cordic loop from 8 to 10 to gain more accuracy, and updated tonegen.c with the results from ARM9 tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2294 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-18 14:11:29 +00:00
Nanang Izzuddin 4494a48287 Ticket #631:
- Changed rem_rtp/rtcp_addr to src_rtp/rtcp_addr in media transport info
 - Updated behaviour of media transport get info, when the transport hasn't receive any packet src_rtp/rtcp_addr will not be set.
 - Fixed bug in pjsua_call_dump that rem_addr was unset.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2293 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-18 12:58:33 +00:00
Benny Prijono 8de925bd4e Large reorganization of the tonegen for ticket #619:
- Deprecate the automatic selection of algorithm
 - Introduced various constants for tonegen backends
 - Allow user to specify/override the algorithm by setting
 - Fix the floating-point approximation backend



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2292 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-18 11:14:21 +00:00
Nanang Izzuddin ff2b11076b Ticket #631:
- Added new fields in media transport info: remote address originating RTP & RTCP.
 - Updated transport UDP & ICE to fill above fields in getting transport info.
 - Updated pjsua call dump, instead of showing remote RTP address from SDP, it will show address of RTP originator.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2291 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-17 15:32:06 +00:00
Nanang Izzuddin 276402c7bd Ticket #630: Added Win32 MME sound device wrapper (thanks Seth Hinze for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2290 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-17 14:49:21 +00:00
Nanang Izzuddin 57dd8e0e0b Ticket #636: Fixed linux compilation issue when autoconf is not used (thanks Seth Hinze for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2289 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-17 12:55:26 +00:00
Benny Prijono 160093ecee Ticket #633: Updated DirectSound implementation:
- Fixed issue on start/stop without close/reopen.
- Fixed possibility of buffer overrun whe 10ms samples used.
- Fixed latency unit of sound stream info, from ms to samples.
- Updated playback buffer to fill the whole playback buffer in each notification in order to increase samples data availability.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2288 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-17 11:56:44 +00:00
Nanang Izzuddin 4d535bbc36 Ticket #625: Added missing fix of unicode build issues in test-pjsip/uri_test.c.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2287 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 18:09:22 +00:00
Nanang Izzuddin 7d1ac29141 Ticket #625: Fixed unicode build issues on Windows platforms (thanks David Parker for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2286 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 17:02:48 +00:00
Nanang Izzuddin 0cff128244 Ticket #627: Fixed general compiler warning when building for WinCE (thanks David Parker for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2285 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 16:45:29 +00:00
Benny Prijono a78877d3ba More ticket #619: fix the difference of volume in the fixed point version of the tone generator, added PJMEDIA_TONEGEN_VOLUME setting to control the default amplitude, and increase default tone volume by about 50%
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2284 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 16:28:40 +00:00
Nanang Izzuddin b76154ed03 Ticket #629: Added IGMPv2 multicast socket options (thanks David Parker for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2283 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 16:11:44 +00:00
Nanang Izzuddin 51b1e5531b Ticket #626: Fixed PocketPJ build error when SRTP is unused (thanks David Parker for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2282 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 15:15:45 +00:00
Benny Prijono 0365e461e5 Ticket #619: added configuration to force floating point algorithm to be used in the tone generator, and added fade-in and fade out options
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2281 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 14:33:16 +00:00
Benny Prijono 0378905e8d Ticket #634: Assertion when rejecting incoming INVITE when the call arrives while pjsip is being shutdown
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2280 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 14:30:50 +00:00
Nanang Izzuddin 762a5bdf6c Ticket #628: Updated IPP codec module to use fixed point version of G.729 on architectures that don't have FPU (thanks David Parker for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2279 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-16 14:11:09 +00:00
Benny Prijono 978de6e88b Ticket #624: Assertion error when pjsua_acc_del() is followed immediately by pjsua_acc_add() (thanks Dan Aberg and Salahuddin Ahmed for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2278 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-15 14:56:05 +00:00
Nanang Izzuddin 447569f671 Fixed linking error undefined CHECK_ when PJMEDIA_WSOLA_IMP_NULL is used (Thanks Samuel Vinson).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2277 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-15 11:16:57 +00:00
Nanang Izzuddin 7afe9442f7 Ticket #616: Updated ICE transport to have a default option to switch RTP transmission to source address if remote doesn't use ICE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2276 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11 18:43:59 +00:00
Nanang Izzuddin b05e4066b7 Ticket #614: Updated docs related to support for play/record G.711 U-law/A-law.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2275 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11 17:38:48 +00:00
Nanang Izzuddin 3a298e8229 Ticket #621: Updated PortAudio to the latest revision 1387.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2274 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11 10:45:50 +00:00
Benny Prijono dbd9d4bbd8 Ticket #623: Assertion when receiving SUBSCRIBE with non presence event (thanks Lucas Rosa Galêgo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2273 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11 10:25:51 +00:00
Nanang Izzuddin 2cba166d60 Ticket #614: Fixed compilation warning of integer conversions.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2272 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11 10:17:10 +00:00
Benny Prijono 2d2cc943bb Ticket #620: PRACK is sent to the wrong UAS when 100rel is used and the dialog forks (thanks Ruud Klaver for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2271 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11 08:00:47 +00:00
Nanang Izzuddin 2c7bdcc47d Ticket #614: Added support for writing and reading WAV files encoded as 8 bit A-law/U-law.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2270 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-10 19:48:45 +00:00
Benny Prijono 3feae369b6 Updated version to 1.0-rc2-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2269 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-09 17:23:35 +00:00
Benny Prijono c463d93c6f Changed version to 1.0-rc2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2267 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-09 15:26:28 +00:00
Benny Prijono 27c256ae25 Ticket #613: Added packet discard statistic in pjsua 'dq' output
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2266 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-08 21:31:36 +00:00
Nanang Izzuddin 1cc4afcdf3 Fixed assertion caused by too small output buffer size of stream, this happens when codec with very small bandwidth is used, e.g: MELP 2.4kbps, (thanks William Wong).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2265 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-08 15:21:56 +00:00
Benny Prijono 232759b022 Ticket #615: Error adding new buddy in the on_incoming_subscribe() callback (thanks Joseph Maiquez for reporting the error)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2264 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-08 12:46:29 +00:00
Benny Prijono 0ab816ffc8 Ticket #612: division by zero in pjlib stddev calculation causes crash/floating point exception in pjsua "dq" command on ARM platform
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2263 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-05 13:35:01 +00:00
Benny Prijono 40860c373e Ticket #610: Added sample to create a media transport adapter, similar to how SRTP media transport works
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2262 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-04 13:55:33 +00:00
Benny Prijono d1c9133de6 Changed pjlib version to 1.0-rc1-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2261 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-04 07:38:52 +00:00
Benny Prijono c8215b3109 Ticke#609: Build/compilation error in Python module (undeclared dec_fmtp_mode/enc_fmtp_mode) (thanks Saul Ibarra for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2260 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-04 07:37:30 +00:00
Benny Prijono cf986c441c Ticket #608: Added API to retrieve media transport and session from pjsua call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2259 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-02 11:25:07 +00:00
Benny Prijono e9c15fd3ee Fixed ticket #607: Assertion and possibly crash in ICE stream transport when client is not behind NAT (thanks Nicolas Fauvel for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2258 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-02 07:40:34 +00:00
Nanang Izzuddin f0b4990146 Fixed build settings for Symbian emulator target regarding sound device implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2257 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-01 11:54:35 +00:00
Benny Prijono fe7f376d3e Updated PJ_VERSION to 1.0-rc1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2255 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-29 09:12:28 +00:00
Benny Prijono f5518cdb6a More ticket #604: create the file if it doesn't exist when PJ_O_APPEND flag is set
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2254 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-28 11:19:54 +00:00
Benny Prijono 9bd039d299 Ticket #604: Error opening file in append mode in Win32 (thanks Gang Liu for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2253 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-28 11:11:28 +00:00
Benny Prijono b789fad72e Print warning instead of assert when Speex AEC is instantiated with multichannels
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2252 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-28 10:44:46 +00:00
Benny Prijono 4df9809827 Fixed unused parameter warning in active socket test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2251 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-28 10:41:29 +00:00
Nanang Izzuddin e46495bc80 Fixed bug Speex frame parser should discard non-audio parts in the Speex bitstream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2250 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-27 17:57:32 +00:00
Nanang Izzuddin e3a6fcac48 Ticket #583: fixed bug on setting frametype in encode() related to special treatment for G729.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2249 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-27 13:15:25 +00:00
Benny Prijono 7f6ca73fcd More ticket #601: premature connection close with TCP active socket case
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2248 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 20:47:53 +00:00
Nanang Izzuddin 16b504ccf9 Added PLC & VAD features to codec L16.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2247 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 20:09:03 +00:00
Benny Prijono 3eb59630e0 Ticket #601: 100% CPU usage when TCP active socket receives ECONNRESET
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2246 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 19:27:23 +00:00
Nanang Izzuddin 437d77c2ac Ticket #602: fixed assertion of invalid stream index supplied to pjmedia_session_get_stream_stat().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2245 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 18:04:15 +00:00
Benny Prijono e9a7703c63 More ticket #602: fixed minor warning about conversion from integer to unsigned char
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2244 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 17:19:27 +00:00
Benny Prijono 758decbfb9 Fixed ticket #603: Crash in ICE with IoCompletionPort ioqueue with the test framework because active socket calls the callback with NULL packet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2243 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 17:10:51 +00:00
Nanang Izzuddin c89e4c70ce Ticket #600: Added probation state in media transport SRTP and also capability to auto-restart when packets received in probation state are 'invalid'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2242 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 16:59:10 +00:00
Nanang Izzuddin a815ceb29b Ticket #602:
- Introduced new API pjmedia_rtp_session_init2() to enable intializing RTP session with non-default initial settings
 - Updated stream so it can be created with non-default initial RTP settings.
 - Updated pjsua-lib to make sure RTP timestamp and sequence contigue when stream session is restarted.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2241 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 16:51:28 +00:00
Benny Prijono 25c8f93390 Fixed ticket #601: Bug in IoCompletionPort ioqueue with TCP server socket causes ioqueue to unable to accept incoming TCP connections
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2240 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 14:41:26 +00:00
Benny Prijono ac1f4848cd Fixed minor bug in exe availability checking in run.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2239 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 14:35:16 +00:00
Benny Prijono b9760d9204 Added sleep() in mod_pesq.py, to wait the test until the call is stabilized
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2238 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 12:15:31 +00:00
Benny Prijono c366aa9917 Fixed audio configuration in config_site.py not used by test scripts
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2237 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 12:13:25 +00:00
Nanang Izzuddin 23a00b774f Ticket #599:
- Added "dec_fmtp" and "enc_fmtp" fields to pjmedia_codec_param.setting.
 - Codec factory puts its default parameters in "dec_fmtp" field.
 - pjmedia_stream_info_from_sdp() puts the "fmtp" attribute in SDP to pjmedia_codec_param.
 - Special treatment for fmtp "bitrate" parameter (of G722.1) during SDP negotiation
 - Added maxptime field in stream_info.
 - Replaced iLBC's fmtp "mode" implementation to use general fmtp mechanism.
 - Added some test scripts for G722.1 bitrate negotiation.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2236 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-25 13:58:25 +00:00
Nanang Izzuddin 6df1d5338e Ticket #583: Fixed preprocessor check in pjsua_media.c on deinit-ing IPP codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2235 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-25 13:46:03 +00:00
Benny Prijono efa014b4ea Ticket #598: Update to draft-ietf-behave-rfc3489bis-18 and draft-ietf-behave-turn-09, and fix other things as well. Please see the ticket for more info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2234 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-22 17:46:33 +00:00
Nanang Izzuddin afc0c94683 Fixed miscalculation of conference port buffer size (rx/tx_buf_cap) when two conf ports have different clock rate/channel count/samples per frame (thanks Joao Cesar).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2233 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-22 15:45:08 +00:00
Benny Prijono 0822c19f28 More ticket #583: autoconf support for Intel IPP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2232 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-21 20:59:58 +00:00
Benny Prijono b133924046 More ticket #583: compilation warnings with gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2231 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-21 20:58:55 +00:00
Benny Prijono c2f80c43b6 More ticket #490: compilation warnings on gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2230 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-21 20:57:31 +00:00
Nanang Izzuddin 3c1ae63cc7 Fixed pjsua-lib bug that it failed to connect sound device & conference for some audio_frame_ptime settings (thanks Thomas Ramp).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2229 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-21 15:04:20 +00:00
Nanang Izzuddin 3d0d475cb7 Ticket #596: Updated resample with backend libresample to process multichannel resampling properly (deinterleave, resample per channel, reinterleave).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2228 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-20 11:19:43 +00:00
Benny Prijono 563cd7a06a Added on_incoming_subscribe() handler in pjsua, just to demonstrate that this callback exists
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2227 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 20:02:15 +00:00
Benny Prijono c671bf86e8 pjsip_endpt_handle_events2() is loosing the error code in MacOS X if pj_ioqueue_poll() returns error. This is because pj_thread_sleep() always set errno to ETIMEDOUT on MacOS X (thanks Ruud Klaver for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2226 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 16:18:02 +00:00
Benny Prijono a4e7cddd29 More ticket #583: a bit of tidying up and renamed macro names etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2225 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 15:01:48 +00:00
Nanang Izzuddin 9ff3c43b84 Ticket #593: Fixed RTP timestamp calculation in RX & TX for multichannel audio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2224 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 12:11:39 +00:00
Nanang Izzuddin 7dd3268d96 Ticket #583: Added missing IPP codec deinit and fixed matching #if-#endif in IPP codec encode.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2223 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 11:23:33 +00:00
Nanang Izzuddin 2d4c384acd Ticket #490: Updated VAD with new algorithm.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2222 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 11:04:32 +00:00
Benny Prijono 0b62704c9a Fixed Python bug with enum_codecs() (thanks Saúl Ibarra for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2221 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-18 11:32:13 +00:00
Benny Prijono 876a2ae3ed Fixed crash in Python when receiving incoming DTMF digits
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2220 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-18 11:07:58 +00:00
Nanang Izzuddin df361e0927 Ticket #583:
- Added codec AMR-WB
 - Updated AMR & AMRWB to utilize quality flag in the AMR payload header
 - Updated callback interface (frm_attr_cb() -> predecode_cb())



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2219 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-16 06:46:08 +00:00
Nanang Izzuddin f216f82375 Ticket #583:
- rearranged some codec properties, e.g: codec name, enable/disable, payload type
 - fixed bug VAD setting on init USC codec




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2218 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-15 18:35:50 +00:00
Benny Prijono 226686128a Ticket #595: Broken semaphore implementation on MacOS X (thanks Viktor Krikun for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2217 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-15 14:53:18 +00:00
Nanang Izzuddin 493a8db2d7 Ticket #583: Initial source of IPP codecs wrapper.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2216 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-15 13:17:39 +00:00
Benny Prijono 96e514bfcd Added maximum threshold for silence detector, to aovid the silence detector setting the threshold too high thus cutting audio signal (e.g. when streaming long continuous signal)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2215 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-14 17:00:21 +00:00
Benny Prijono cd2a158ec9 More ticket #590: removed unused echo suppressor settings in pjmedia/config.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2214 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-14 15:51:53 +00:00
Benny Prijono f1bb9e99be Increase codec's maximum silence duration (PJMEDIA_CODEC_MAX_SILENCE_PERIOD) from 500ms to 5 seconds since it may produce ticks noise which can be quite annoying
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2213 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-14 14:47:07 +00:00
Benny Prijono 0ceb87d0ee More ticket #590: optimizations in the echo suppressor, gained more than 3x speed. Added entries in mips_test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2212 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-13 18:21:03 +00:00
Benny Prijono 36e76ef160 Ticket #594: Improvements in PocketPJ Windows Mobile application: added TCP option, VAD option, option to select codec priority order, and auto-answer option
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2211 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-13 13:56:24 +00:00
Benny Prijono 6a2376397c Added interactive option in aectest sample and to display WAV duration on exit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2210 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-13 13:53:18 +00:00
Benny Prijono f6c77f4312 Fixed bug in --auto-rec option handling in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2209 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-13 13:52:19 +00:00
Benny Prijono f512a6d3f7 More ticket #590: handle the case when mic level is set too high causing echo to be mistakenly treated as local user speaking
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2208 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-13 13:50:19 +00:00
Benny Prijono 1243ffbcd4 pj_sockaddr_copy_addr() might raise assertion if destination address is not initialized
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2207 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-13 08:41:42 +00:00
Benny Prijono 8b9926dc9b More ticket #591: Assertion failure in ICE session (thanks Pedro Gonçalves for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2206 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-12 12:20:21 +00:00
Benny Prijono 80cae1b9b0 Ticket #592: URI comparison may crash the application (thanks Pedro Gonçalves for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2205 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-12 10:55:28 +00:00
Benny Prijono 59b3ffe52f Related to ticket #590: added command line option in pjsua to select the echo canceller algorithm to use
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2204 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-11 18:10:42 +00:00
Benny Prijono 3fed250495 More ticket #590: fix the bug in smoothing factor
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2203 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-11 15:30:22 +00:00
Benny Prijono 3c3ef260a1 Ticket #591: Assertion failure in ICE session (thanks Pedro Gonçalves for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2202 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-11 15:17:40 +00:00
Benny Prijono 4e57a54630 Initialize CPocketPJ setting with proper values in constructor
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2201 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-10 22:10:41 +00:00
Benny Prijono 82224b1865 Renamed fabs() to FABS() since it conflicts with intrinsic function in VC6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2200 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-10 22:09:57 +00:00
Benny Prijono a7908d7bbb Ticket #590: new echo suppressor which should work much better than the old one
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2199 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-10 16:15:14 +00:00
Benny Prijono 95250c71e2 Ticket #588: Improvements to echo cancellation framework
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2198 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-09 05:40:22 +00:00
Nanang Izzuddin bf321847e5 Fixed bug possibility of dereferencing NULL pointer when calling pjmedia_jbuf_get_frame() (thanks Joel Dodson)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2197 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-08 07:03:21 +00:00
Benny Prijono 551af42ca3 Ticket #586: Added ICE negotiations test to test the scenario when two agents have different number of components
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2196 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-07 09:55:52 +00:00
Benny Prijono 6320205f31 Fixed bug in pj_ice_strans_get_running_comp_cnt(): wrong number of components may be returned
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2195 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-07 09:43:41 +00:00
Benny Prijono a330d4553a Ticket #585: Handle non-SIP URI in Contact header of incoming INVITE and SUBSCRIBE requests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2194 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-05 20:14:39 +00:00
Benny Prijono 984080bd69 Implement ticket #551: Generic URI scheme handler (thanks Juri Glaß for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2193 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-05 19:28:17 +00:00
Nanang Izzuddin 2c953d4f2d Added test delaybuf to pjmedia MIPS test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2192 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 16:03:28 +00:00
Nanang Izzuddin 99d69522ac Ticket #563: Updated SDP offer/answer related to call hold scenario to conform to RFC 3264 section 8.4 (before: 'a=inactive' and 'c=0.0.0.0', now: 'a=sendonly' and muted ports).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2191 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 15:01:38 +00:00
Benny Prijono 37fc9de7fd Fixed build error on FreeBSD (cannot use <netinet/ip.h> if <netinet/in_systm.h> is not included)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2190 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 14:45:02 +00:00
Benny Prijono 33c9db0ea3 Fixed compilation warning in test-pjsip
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2189 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 14:30:33 +00:00
Benny Prijono ed3bd6ffa8 Changed SIP transport to use active socket to fix ticket #579: "Data loss with TCP sockets (thanks Helmut Wolf for the report)". Also added SIP more TCP transport tests to reproduce the bug
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2188 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 10:52:51 +00:00
Benny Prijono bd344ff0ba Added new active socket API's to specify application buffers in start_read() and start_recv() functions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2187 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 09:59:02 +00:00
Benny Prijono 7f6ee02164 Fixed ticket #582: Extended presence status is not sent in initial NOTIFY request (thanks Joseph Maiquez for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2186 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-31 08:32:46 +00:00
Benny Prijono 417d6054a7 Initial work for ticket #579: added option to make the active socket sends all the (TCP) data before calling completion callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2185 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-29 20:15:15 +00:00
Nanang Izzuddin 794be669a0 Ticket #557: Fixed memory leak in Speex EC (actually this is updating Speex version to 1.2rc1)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2184 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-29 12:13:40 +00:00
Benny Prijono b1c620431a Fixed ticket #581: Fixed build dependencies in the makefiles
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2183 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-29 11:42:20 +00:00
Benny Prijono ebb2c334a2 Ticket #463: Configuration option to have external sound device implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2182 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-28 23:40:58 +00:00
Benny Prijono 901a2c3f8d Added PJ_LOG_HAS_LEVEL_TEXT logging flag to display the log verbosity level (thanks Ondrej Sterbak for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2181 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-28 21:15:04 +00:00
Benny Prijono 1523ff9333 Ticket #538: Closed TCP connection should be removed from the hash table immediately
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2180 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-28 20:17:04 +00:00
Benny Prijono 4676455ef0 Ticket #580: Incoming target refresh request does not update the Contact header (thanks Joel Dodson for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2179 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-28 18:57:36 +00:00
Benny Prijono 9183c03c3d Added latency.c in the samples (see http://trac.pjsip.org/repos/wiki/MeasuringSoundLatency)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2178 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-28 14:37:47 +00:00
Benny Prijono 1dd5420a03 Fixed linking errors in pjnath when TCP is disabled in PJLIB
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2177 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-25 10:45:34 +00:00
Benny Prijono 251e02af61 Fixed invalid configuration generation in pjsua for auto-update-nat option (thanks Ondrej Sterbak)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2176 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-25 10:05:55 +00:00
Benny Prijono 733486a3b6 Ticket #578: Bug in encoding ICE candidate type in SDP (thanks Ondrej Sterbak)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2175 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-25 09:16:30 +00:00
Nanang Izzuddin cb2789a19b Ticket #577: Initial source of sound device wrapper with APS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2174 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-24 15:30:44 +00:00
Benny Prijono de2c5f041f Added setup-vc.py for Visual Studio installation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2173 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-24 12:20:53 +00:00
Benny Prijono 1a19db4239 Tweak setup.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2172 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-24 12:20:08 +00:00
Benny Prijono ec72b6ec4d Added simplecall.py sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2171 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-24 09:01:33 +00:00
Benny Prijono fd47c2c552 pjsua.py: fixed transport port bug, changed default tracing to disabled, and removed documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2170 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-24 09:00:28 +00:00
Benny Prijono 6ee5fb133e pj_strtoul() should stop the conversion as soon as it finds a non-digit character in the input
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2169 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-23 13:26:33 +00:00
Benny Prijono e2bb607f9b Fixed crash in stateful proxy sample when receiving request with malformed CSeq header (thanks Brocha Strous)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2168 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-23 09:59:11 +00:00
Benny Prijono 0afea9b997 Added math.h to pjlib's Visual Studio projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2167 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-22 14:58:41 +00:00
Benny Prijono e1a008e980 Wrong documentation in pjmedia_snd_port_connect() (thanks Klaus Darilion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2166 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-22 10:36:38 +00:00
Benny Prijono 6ecef07bd2 Added sleep() in python handle events to avoid starvation in the main thread
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2165 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-21 22:46:35 +00:00
Benny Prijono 680c39e770 Fixed gcc warning on _pjsua.c about suggested parenthesis
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2164 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-21 21:15:46 +00:00
Benny Prijono 550404568a Major modifications in Python module and pjsua.py wrapper:
- replaced call/acc/buddy dictionaries with user data attachment
 - recommended to install callback when creating the object, to
   prevent missing some events
 - fixed circular references by using weakref
 - protect access to pjsua with mutex; found out that without this
   there will be deadlock in Python
 - fixed memory leaks in the _pjsua.c module (objects reference
   counter not properly maintained)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2163 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-21 18:20:57 +00:00
Benny Prijono 705e784529 Ticket #576: Added user data in pjsua account and buddy
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2162 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-21 18:12:51 +00:00
Benny Prijono b7944865e1 Added pjsua option to set the logging color scheme for terminal with light background (thanks Ondrej Sterbak)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2161 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-19 20:53:49 +00:00
Benny Prijono b726d268a6 Fixed build error with some Mingw configuration related to socklen_t
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2160 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-19 18:05:04 +00:00
Benny Prijono d6e362a2b5 Ticket #571: Coloring for logs in Linux/UNIX, two more spaces in logs and runtime log colors configuration (thanks Ondrej.Sterbak)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2159 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-19 17:53:47 +00:00
Benny Prijono 288d4bd2a1 Added WAV playlist and conf_set/get_level API to Python module
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2158 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-19 15:40:21 +00:00
Benny Prijono d7e2658d30 Related to ticket #192: crash when shutting down pjsua if buddy pool has been destroyed when presence subscription callback is called
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2157 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-18 23:51:49 +00:00
Benny Prijono e6787ecf5b Implemented ticket #192 for Python: Add callback to notify application about incoming SUBSCRIBE request, and add subscription state and termination reason in buddy info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2156 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-18 23:00:56 +00:00
Benny Prijono 6d9ee8d5da Ticket #575: Unregistering from Windows IOCompletionPort (IOCP) ioqueue does not close the socket handle (thanks Gang Liu for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2155 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-18 10:33:09 +00:00
Nanang Izzuddin c985354e68 Added pjsua command line option '--jb-max-size' to set jitter buffer max frames
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2154 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 16:59:07 +00:00
Nanang Izzuddin 99e591fdb2 Fixed linking error cased by missing PJMEDIA_HAS_RTCP_XR guard for pjmedia_session_get_stream_stat_xr()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2153 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 16:03:50 +00:00
Nanang Izzuddin 660eee8b32 Added ability to dump extended statistics (RTCP XR) in pjsua.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2152 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 14:54:03 +00:00
Benny Prijono 1af449a512 Fixed Winsock link error in pjturn-srv VS6 project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2151 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 14:45:48 +00:00
Benny Prijono 63fba01e16 Ticket #192: Add callback to notify application about incoming SUBSCRIBE request, and add subscription state and termination reason in buddy info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2150 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 14:19:10 +00:00
Benny Prijono 751305783c Ticket #574: Add new API to know why the outgoing subscription request is terminated and added support for delaying subscription acceptance
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2149 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 13:53:41 +00:00
Benny Prijono ac3c28dfed More ticket #568: added hash_test.c to pjlib-test VS6 and VS2005 projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2148 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17 13:44:56 +00:00
Benny Prijono 0c13f3d89e Ticket #573: Handle receiving short version of Event header
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2147 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-16 22:39:45 +00:00
Benny Prijono c4633496dd Ticket #572: New PJSIP pjsip_msg_find_hdr_by_names() API to find SIP header by either header name or the short header name
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2146 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-16 12:31:57 +00:00
Nanang Izzuddin 66456af972 Ticket #570: Fixed find_pitch() search range iteration; and fixed wsola_generate() in deciding when to just return a frame from existing extra samples and when to expand/generate samples.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2145 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 18:55:01 +00:00
Nanang Izzuddin 4b96049db1 Ticket #569: Updated SRTP locking to not guard member transport when sending packet; added separate tx_buffer for RTCP since tx_buffer is not guarded by SRTP lock anymore
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2144 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 18:36:50 +00:00
Nanang Izzuddin 375850e9e0 Fixed minor bug missing wsola_plc initialization.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2143 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 17:59:31 +00:00
Benny Prijono 3d9b4b6a40 Fixed unitialized read when parsing account's Contact URI
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2142 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 17:55:40 +00:00
Nanang Izzuddin 90bcd4303a Ticket #558: Fixed memory leak caused by cipher_type_self_test()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2141 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 17:53:58 +00:00
Benny Prijono 8cea030779 Slight optimization in GUID generation for Win32 (removed unnecessary copy before encoding to string)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2140 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 17:53:58 +00:00
Benny Prijono 4523559a92 More ticket #568: added hash table test to Symbian pjlib-test MMP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2139 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 17:29:05 +00:00
Benny Prijono f1370373e6 Ticket #568: The hash table ignores the last row of the table in hash table iteration, causing some memory leaks during shutdown routine because some objects are not destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2138 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 16:58:11 +00:00
Benny Prijono 40032fd449 More ticket #559: added PJ_POOL_SIZE macro in pool_alt.h to make it work with some pjlib-test files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2137 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 16:48:13 +00:00
Benny Prijono bbb08dd81f Ticket #567: Rare race condition causing crash in ICE stream transport when STUN Binding resolution callback is called before initialization completes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2136 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 14:14:00 +00:00
Benny Prijono 311b63f153 Related to ticket #566: Crash when shutting down PJSUA-LIB and outgoing call in in progress and there is no answer from remote
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2135 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 11:31:40 +00:00
Benny Prijono 4d1cc7b19c Related to ticket #518: only destroy the account and buddy pools after busy_sleep() is done, otherwise when unregistration callback is called, the callback will access accounts which are no longer valid because the pool has been destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2134 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 09:55:01 +00:00
Benny Prijono ff3b146755 Ticket #566: TURN session in PJSUA-LIB is not properly destroyed causing possible memory and handle leaks
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2133 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-14 09:32:14 +00:00
Benny Prijono ddde091750 Ticket #565: Call WSACleanup() when pj_shutdown() is called on Windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2132 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-13 14:57:22 +00:00
Benny Prijono 10d8dbd1bc Ticket #564: Reduce the memory usage for default pjsip settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2131 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-13 13:12:36 +00:00
Benny Prijono c91ed8dba4 Ticket #518: some fixes for growing memory usage in PJSUA-LIB, by using temporary pools for temporary variables and by having separate pool for each account and buddy
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2130 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-13 12:24:55 +00:00
Benny Prijono eef6a7d036 Set default UDP media transport name if name is not specified by application, otherwise memory pool name will be empty
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2129 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-13 11:51:28 +00:00
Benny Prijono 10208dcd0d Related to ticket #529: ignore transaction terminate request if transaction state is already DESTROYED
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2128 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 21:22:35 +00:00
Benny Prijono f4ca835863 Fixed ticket #529: memory leak on Symbian and possibly handle leaks on all platforms when application quits while transactions have not been terminated
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2127 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 21:10:25 +00:00
Benny Prijono 8eb763c207 Ticket #561: select() ioqueue default concurrency setting is not initialized with default value
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2126 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 10:09:39 +00:00
Benny Prijono 1222ef697d Ticket #562: In TURN client sample application, when STUN server is specified, contact the STUN server on default STUN port rather than the TURN port
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2125 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 10:08:37 +00:00
Benny Prijono 41d7013ab0 Ticket #560: Optimize the memory usage of DNS resolver
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2124 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 09:50:48 +00:00
Benny Prijono d7c6d050a5 Ticket 559 (minor): Update the pool alternative API (pool_alt.h) with the latest pool API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2123 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 09:31:34 +00:00
Benny Prijono 940bd3e84c Fixed bug in python's player_get_slot() and recorder_get_slot()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2122 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-11 09:14:40 +00:00
Benny Prijono 90cc76e9ac Fixed gcc function is not a prototype warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2121 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-11 00:56:07 +00:00
Benny Prijono b85ba65c73 Updated setup.py for Linux and written more docstrings documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2120 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-11 00:55:22 +00:00
Benny Prijono 9c4611432c Ticket #556: New object oriented Python abstraction for pjsua API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2119 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-10 22:41:20 +00:00
Benny Prijono ba736c4c19 Ticket 555: modifications to pjsua instant messaging callbacks
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2118 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-10 20:45:03 +00:00
Nanang Izzuddin 69fb2fd1c8 Added config settings for search range in WSOLA expand()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2117 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-10 19:26:03 +00:00
Nanang Izzuddin 131faa5f7c Updated delay buffer to use circular buffer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2116 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-10 15:04:27 +00:00
Nanang Izzuddin 89214fe9e3 Updated WSOLA to use circular buffer and configurable hanning window size (which affecting number of delay produced by WSOLA)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2115 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-10 14:59:57 +00:00
Nanang Izzuddin 0883cff64f Added two APIs to pjmedia circular buffer: copy & pack buffer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2114 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-10 10:46:34 +00:00
Benny Prijono 0c4c13645d Removed pjmedia_test from VS 2005 workspace as it makes compilation fails when some features are disabled (e.g. SRTP). Need to modify mips_test.c to take into account if features are disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2113 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-08 09:24:44 +00:00
Benny Prijono 1d6b8955c6 Configuration option to include/exclude loopback interface in enum_ip_interface(), and always include loopback address in the proxy sample (thanks Filippo Zangheri for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2112 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 21:31:02 +00:00
Benny Prijono c7bdb084e4 Modified runall.py python testing module to accommodate mod_recvfrom.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2111 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 20:15:25 +00:00
Benny Prijono e9a8224a8d Added mod_recvfrom.py testing module and some registrar test scenarios
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2110 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 20:14:41 +00:00
Benny Prijono a4ff8c59ef Related to ticket 554: handle the case where server rejects Authorization because of incorrect nonce but fails to set stale parameter to true. In this case we will retry the authentication as long as the nonce in the challenge is different than current nonce. This seems to have fixed ticket 554 too (to be confirmed)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2109 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 20:00:10 +00:00
Benny Prijono 7741c8a77b Stop putting PUBLISH in Allow header since that's probably is not semantically correct (thanks Ruud Klaver for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2108 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 19:57:16 +00:00
Benny Prijono 5a7c5f42db Removed pjmedia-test from pjmedia build for now since it's causing build error when SRTP is disabled (thanks Pedro Gonalves)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2107 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 14:13:36 +00:00
Benny Prijono c5b1dad46e Fixed segfault when getifaddrs() returns NULL address (thanks Filippo Zangheri)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2106 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-07 14:03:29 +00:00
Benny Prijono b5a4e77358 Added WinCE project for pjmedia_test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2105 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-05 11:53:45 +00:00
Benny Prijono ca1f631f59 Added pjmedia_test to Visual Studio workspaces
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2104 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-05 08:45:19 +00:00
Benny Prijono 35f5ce9e79 Fixed compilation warnings on gcc-4.2.3
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2103 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-04 23:49:44 +00:00
Benny Prijono b1f62f4ac4 Updated mips_test.c after running on ARM
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2102 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-04 23:43:10 +00:00
Benny Prijono 0ff56dcfed Added MIPS benchmark in pjmedia-test, and loopback media transport to assist the stream testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2101 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-04 16:45:17 +00:00
Benny Prijono 4999dbfa94 Fixed crash in stream.c when it tries to send RTCP BYE when stream initialization fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2100 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-04 16:39:58 +00:00
Benny Prijono 943ce2a5dd Fixed bug in SRTP regarding startup flags evaluation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2099 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-04 16:25:19 +00:00
Nanang Izzuddin 78238b320d Added module circular buffer (circbuf.h) to pjmedia
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2098 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-04 09:28:04 +00:00
Benny Prijono d38b414826 Fixed VS 2005 dependency for samples project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2097 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-02 15:18:13 +00:00
Benny Prijono 6ae55becaa Added gdi32.lib and advapi32.lib into pjsua VC 2005 input libraries specs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2096 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-02 15:17:48 +00:00
Benny Prijono 0e9f762648 Ticket #553: PUBLISH callback is not called when authentication fails (thanks Ruud Klaver for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2095 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-01 19:11:55 +00:00
Benny Prijono e10db84646 Ticket #552: Added TLS server name extension to support connecting to multi-hosted SIP TLS server (thanks Klaus Darilion for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2094 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-01 15:31:59 +00:00
Benny Prijono 6c0bdf49de Changed version to 0.9.0-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2093 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-01 15:15:58 +00:00
Benny Prijono 149ebfe726 Updated PJ_VERSION to 0.9.0-release
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2091 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 21:19:27 +00:00
Benny Prijono b036fdf0b9 Fixed build error on Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2090 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 14:48:10 +00:00
Benny Prijono e78676b0f7 Removed old PLC setting from pjmedia/config.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2089 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 14:47:41 +00:00
Nanang Izzuddin ffa18c9a60 Updated PESQ test to save the WAV output on failure and report the PESQ target.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2088 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 00:52:20 +00:00
Benny Prijono cb1185633e Updated python test readme doc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2087 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 00:40:17 +00:00
Benny Prijono 0fe5acff88 Fixed crash when handling incoming MESSAGE request without message body but with Content/Type set (thanks Anshuman S. Rawat)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2086 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 00:39:58 +00:00
Nanang Izzuddin 038effe333 Fixed wrong variable name for number of failed tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2085 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-28 00:00:10 +00:00
Benny Prijono 1e65e9ade0 Added stdout buffering option in Python tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2084 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 23:53:00 +00:00
Nanang Izzuddin e19e0e091f Removed userdata param in callback funcs of mod_media_playrec.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2083 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 22:47:33 +00:00
Nanang Izzuddin 65417bddda Updated runall.py to cleanup the 'logs' directory before test; fixed log ext name; added report num of tests performed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2082 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 22:15:41 +00:00
Benny Prijono ab8dba93e3 Added more Python tests: offer with multiple media lines
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2081 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 21:59:15 +00:00
Benny Prijono 036911bdc4 Added the ability to send a complete/arbitrary SIP INVITE message in mod_sendto.py Python test script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2080 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 21:22:12 +00:00
Benny Prijono a310bd2edd Fix handling of multiple media lines in the incoming SDP offer. Now pjsua-lib will be able to select the best media line to handle
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2079 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 21:19:44 +00:00
Nanang Izzuddin a680bd6fcc Ticket #543:
- added options to run.py
 - passing options in runall.py to run.py
 - removing userdata in module callback functions




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2078 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 21:12:12 +00:00
Benny Prijono f6a5ac5538 Media session should not reject the whole SDP when it receives SDP with unknown media
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2077 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 18:48:22 +00:00
Benny Prijono 934f03b729 Fixed assertion when parsing incoming SDP which is not properly terminated with CRLF
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2076 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 18:47:05 +00:00
Nanang Izzuddin 9869cb5cbb Ticket #543:
- Fixed bug of calculating clock interval which should include channel count
 - Added L16 codecs including stereo
 - Added WAV files for stereo tests



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2075 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 16:18:13 +00:00
Nanang Izzuddin 81e9bd52cd Fixed minor bug on ptime calculation on player creation; Updated pjsua-app info on ports ptime and default capture latency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2074 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 12:52:51 +00:00
Nanang Izzuddin 72778f2f01 Fixed session.c incorrectly parsing channel count from SDP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2073 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 12:41:56 +00:00
Benny Prijono 129b8b06a2 Fixed extra '/' character when encoding stereo codecs (thanks Gianluca Crucillà)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2072 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 10:45:40 +00:00
Benny Prijono e4ddeecf0f python testing: fixed slow test performance due to expecting wrong text in mod_call.py, and exclude PUBLISH tests in runall.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2071 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27 08:51:55 +00:00
Benny Prijono 8ca401465a Rearrange the commands in mod_pres.py to make it work
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2070 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 22:20:54 +00:00
Benny Prijono ddd02de5b5 echo command in pjsua can be used to print any text, and this is used to better synchronize stdout in Python test apps
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2069 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 22:20:11 +00:00
Benny Prijono 9bc3c18e23 Added test duration in runall.py output, and add public ICE in excluded tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2068 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 22:17:33 +00:00
Benny Prijono 4d0da3aa38 Added option to disable stdout buffering in pjsua, and adjust the python tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2067 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 20:23:47 +00:00
Benny Prijono 632be0a2f5 Added various tests with invalid SDP and other SIP parameters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2066 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 19:51:01 +00:00
Benny Prijono 2c484e499f Fixed assertion in invite session when INVITE has bad SDP because the SDP is given without having been validated first
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2065 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 19:47:23 +00:00
Nanang Izzuddin 4375f90047 Ticket #544: Fixed SRTP on hold+reinvite scenario
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2064 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 19:12:09 +00:00
Nanang Izzuddin 9eac547221 Ticket #543: Updated PESQ to start/stop manually stream/record instead of using auto-rec/play/hangup, and also updated thresholds
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2063 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 18:52:16 +00:00
Benny Prijono 5242a423c9 Set universal_newlines=False in run.py, and added failed UPDATE scenario in mod_call.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2062 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 16:27:17 +00:00
Benny Prijono 88accae905 Specifying star in codec selection will select all codecs. Fixed the codec selection in codec.c to select all codecs when empty string is given.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2061 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 15:48:14 +00:00
Benny Prijono 2331d20dcc Fixed bug: media got deactivated when SDP negotiation fails on re-INVITE or UPDATE while it should be unaffected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2060 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 15:46:52 +00:00
Benny Prijono 62a969c920 Added PRACK tests and ICE with public proxy tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2059 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 13:29:29 +00:00
Benny Prijono b2ad04a288 Do no disconnect invite session if authentication fails for requests within dialog. Also clears up inv->invite_tsx if re-INVITE fails with authentication error, otherwise it will not be able to send further re-INVITEs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2058 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 13:24:10 +00:00
Nanang Izzuddin 6ee166d43f Ticket #543: Updated PESQ test, sound device used only by one side to avoid contention
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2057 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 12:26:52 +00:00
Benny Prijono fd072893fe Changed log verbosity of STUN unrecognized attribute log from 4 to 5 since we now put unrecognized attribute in a generic container anyway
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2056 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26 09:51:17 +00:00
Benny Prijono 8a3fc3bbf7 Replaced WAV files for automated testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2055 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 23:26:28 +00:00
Benny Prijono a18dad99c8 Optimize the number of characters written to SDP by ICE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2054 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 21:16:46 +00:00
Benny Prijono 61fc5e6aa2 Fixed assertion error when resending re-INVITE after it is challenged with 401/407, and also fixed error when the invite session is not retrying the BYE request when it is challenged with 401/407
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2053 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 18:35:31 +00:00
Nanang Izzuddin acb3e3250e Ticket #543: Updated mod_pseq & mod_media_playrec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2052 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 18:18:32 +00:00
Nanang Izzuddin b40e28724f Ticket #543: added mod pesq & mod media playrec to runall.py, also added some more wav files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2051 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 15:05:21 +00:00
Nanang Izzuddin 9a6e835935 Ticket #543: added initial WAV files for test input
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2050 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 14:31:05 +00:00
Benny Prijono 0b4c57b8de Fixed ticket #550: PRACK is not re-sent on 401/407 challenge (thanks Josh Benson)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2049 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 10:15:01 +00:00
Nanang Izzuddin 8eb914196d More ticket #542: Updated default capture latency (tested OK on Vista 64bit for WMME & dsound)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2048 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-24 11:32:42 +00:00
Benny Prijono 8d67fba513 Fixed crash in ICE when adding peer reflexive candidate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2047 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-23 22:17:26 +00:00
Benny Prijono ed416b59dc Fixed bug in TURN when sending Send Indication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2046 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 18:30:47 +00:00
Benny Prijono 8a2b59d4ac Optimize TURN client to send Send Indication without allocating a pool
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2045 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 17:52:17 +00:00
Benny Prijono 074db79551 Added more API to initialize STUN message and attributes without pool
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2044 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 17:51:31 +00:00
Benny Prijono b8ad0e433b Fixed bug in ICE: packet is not sent when ICE is not running (remote has no ice) and TURN is set as default candidate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2043 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 14:13:24 +00:00
Benny Prijono d6aea36a80 Added pjnath_test, pjturn_client, and pjturn_server projects in VS6 workspace
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2042 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 12:41:18 +00:00
Benny Prijono 7ce74135ed Fixed bug with authenticating STUN messages when unrecognized/unknown non-mandatory STUN attribute is present in the message
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2041 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 12:36:56 +00:00
Benny Prijono 3fdf3f6ec4 Peers use STUN mapped address instead of local address in TURN client sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2040 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 10:18:49 +00:00
Benny Prijono 32177c0418 Large changeset to replace all occurences of year 2007 with 2008 in the copyright notice
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 22:44:47 +00:00
Nanang Izzuddin b6133fb805 More ticket #543: added PESQ test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2038 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 21:45:50 +00:00
Benny Prijono 5b64b8df4b Updated doxygen documentations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2037 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 21:39:02 +00:00
Nanang Izzuddin e6f85fb750 More ticket #543: added SRTP tests on scripts-sendto
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2036 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 17:43:55 +00:00
Benny Prijono df008d3e28 Make SDP parser more lenient by ignoring first newlines.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2035 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 00:31:49 +00:00
Benny Prijono 3190f69413 Set svn attributes on new test script files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2034 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 00:29:17 +00:00
Benny Prijono 7d578a7bd5 More ticket #543: added mod_sendto.py to send arbitrary INVITE request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2033 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 00:25:55 +00:00
Benny Prijono 224b4e22a7 Ticket #549: major modification in media transport API to support more offer/answer scenarios
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2032 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-19 14:10:28 +00:00
Benny Prijono ed6bd028f8 Added new API's in ICE stream transport to assist offer/answer negotiation: pj_ice_strans_has_sess(), pj_ice_strans_sess_is_running(), pj_ice_strans_sess_is_complete(), pj_ice_strans_get_running_comp_cnt(), pj_ice_strans_get_ufrag_pwd(), and PJNATH_EICEMISMATCH error code.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2031 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-19 13:54:21 +00:00
Benny Prijono ba5d8e06b1 Clarified in the pj_create_random_string() comment that the output string is not NULL terminated
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2030 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-19 13:49:20 +00:00
Nanang Izzuddin f810f95fc3 Added new callback for module: post_func (called at the end of the test), added userdata param for modules, and added new module media_playrec with some scripts
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2029 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-18 21:04:14 +00:00
Benny Prijono f9bd1f2f7d More ticket #543: updated automated tests to run on Unix
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2028 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-16 13:04:44 +00:00
Nanang Izzuddin 148fd3929a More ticket #540: updated snd-auto-close to work friendly with call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2027 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-16 09:52:50 +00:00
Nanang Izzuddin 6472e1bfb0 Cleaned up unused field avg_jitter from rtcp session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2026 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-16 08:27:48 +00:00
Benny Prijono cc1ada5831 Added presence pjsua unit tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2025 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-15 19:43:43 +00:00
Benny Prijono 4f96689a0a Changed tonegen to use native clock rate, and other minor changes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2024 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-14 22:43:56 +00:00
Benny Prijono e28cec89fa Refine the tone feature implementation in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2023 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-14 20:40:53 +00:00
Benny Prijono 495409d00c Added pjmedia_tonegen_rewind()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2022 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-14 20:33:44 +00:00
Benny Prijono 91d20f460b Added ringback/alert tones in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2021 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-14 19:42:37 +00:00
Benny Prijono dd3d002ed4 Implement ticket #546 and revisit ticket #439:
- ticket #546 implements RTCP SDES and CNAME
 - re-enable periodic RTP TX which was disabled by #439
 - fixed bug in RTCP TX interval
 - changed PJMEDIA_CODEC_MAX_SILENCE_PERIOD value from ts to msec



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2020 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-14 16:52:04 +00:00
Benny Prijono 4d49c78d39 More ticket #505: added constants to shrink the excess frames in jbuf even more slowly, default can only discard one excess frame per 200ms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2019 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-14 16:44:33 +00:00
Nanang Izzuddin 68559c3dac Ticket #540: Added pjsua-lib feature auto-close sound device on idle and new pjsua option --snd-auto-close=N
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2018 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-13 17:01:46 +00:00
Benny Prijono 8c331dfa5e More ticket #543: added ICE test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2017 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-13 15:32:08 +00:00
Nanang Izzuddin 2283e8791c Added svn:ignore list for symbian_ua_gui
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2016 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-13 15:19:02 +00:00
Benny Prijono 89ac2b4d25 Fixed various compilation warnings with gcc strict compilation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2015 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-13 12:52:56 +00:00
Benny Prijono 3eb16d78bc Fixed build error on the Python module. It's still not up-to-date with the latest API though
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2014 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 22:45:26 +00:00
Benny Prijono a8a144cdbb Ticket #543: added TCP call in pjsua unit test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2013 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 19:13:51 +00:00
Benny Prijono 62ae5c689f More ticket #543: added SRTP negotiation tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2012 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 18:10:22 +00:00
Benny Prijono cbd38c68d1 Related to ticket #525: transport_srtp returns PJ_EINVALIDOP in UPDATE or re-INVITE when media is already active
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2011 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 18:07:28 +00:00
Nanang Izzuddin b0dd211ed3 More ticket #542: updated dsound.c to adapt with latency setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2010 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 16:54:48 +00:00
Benny Prijono 4b4adb3b97 Ticket #543: initial framework for pjsua testing, still needs lots of test scenarios
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2009 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 15:37:22 +00:00
Benny Prijono ebc32c312b Added echo option and stdout refresh in pjsua to assist automated test scripts
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2008 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 13:30:39 +00:00
Nanang Izzuddin d7fefd72b7 Ticket #542: added new API and macro for sound device latency settings, also added new param for this in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2007 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 12:48:59 +00:00
Benny Prijono 800ec60675 Bug in srv_resolver: host_resolved value may exceed number of SRV records if there are more than A records in Additional Record section of the response for a single SRV target (thanks Ruud Klaver)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2006 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 12:36:59 +00:00
Benny Prijono 123fad7d79 Fixed error representing the qvalue in Contact header (parser error), and optimize the printing to remove ending zero digits (thanks Philippe Leuba)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2005 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-11 11:18:04 +00:00
Nanang Izzuddin 9dbad15b00 Updated default speex quality settings and reenabled pjsua to set Speex codec quality based on media quality config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2004 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-10 18:56:10 +00:00
Nanang Izzuddin 7155cc6591 Fixed Speex build config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2003 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-10 14:35:50 +00:00
Nanang Izzuddin 3cbb0653f2 Upgraded Speex version to the latest and reorganized it in local copy (since Speex is now using Git)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2002 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-10 14:09:37 +00:00
Benny Prijono f551240a57 Added gdi32.lib and advapi32.lib in Samples-vc.mak as it causes link error when TLS is enabled (on certain Platform SDK?)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2001 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-10 11:13:04 +00:00
Nanang Izzuddin 85d2084357 Removed codec G729 from encdec.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2000 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-09 12:32:01 +00:00
Benny Prijono b618d62acb Related to r1996, do not return 0.0.0.0/8 class IP address in pj_gethostip() (thanks Helmut Wolf)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1999 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-09 10:07:11 +00:00
Nanang Izzuddin fd461eb779 Added more validations & a new API (thanks Florian Bomers):
- added more validation on pjmedia transport get info.
 - added more validation on stop_media_session() of pjsua_media, useful when conference is not used.
 - added new API for retrieving user_data of pjmedia session.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1998 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-09 09:35:59 +00:00
Benny Prijono 0890fb6d16 Fixed more mismatch decl/def function specifications (thanks Samuel Vinson)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1997 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-07 11:23:27 +00:00
Benny Prijono dd538edbb8 Ignore 0.0.0.0/8 class IP address in interface enumeration function since this doesnt seem to have practical use for us (thanks Helmut Wolf)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1996 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-07 11:14:32 +00:00
Benny Prijono 70656cb965 Fixed mismatched between declaration and definition of pj_stun_msg_encode() (thanks Samuel Vinson)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1995 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-07 09:22:25 +00:00
Benny Prijono 2bfc3d8d0a Added error logging when authentication fails in TURN server sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1994 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 23:10:37 +00:00
Benny Prijono 758bae4d33 Fixed minor bug: wrong pool name for STUN session pool
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1993 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 23:07:31 +00:00
Benny Prijono 1189365820 Ticket #418 Protect client registration session with mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1992 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 22:52:48 +00:00
Benny Prijono 739551f551 Fixed compilation warnings in dns_server.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1991 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 20:59:11 +00:00
Benny Prijono f76e1396d7 More ticket #485: added TURN support in PJSUA-LIB API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1990 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:51:48 +00:00
Benny Prijono 848be0842d More ticket #485: major modification in transport_ice to support new ICE stream transport API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1989 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:50:13 +00:00
Benny Prijono ff1df04070 Major major modifications related to ticket #485 (support for TURN-07):
- Added STUN socket transport pj_stun_sock
 - Integration of TURN-07 to ICE
 - Major refactoring in ICE stream transport to make it simpler
 - Major modification (i.e. API change) in almost everywhere else
 - Much more elaborate STUN, TURN, and ICE tests in pjnath-test



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1988 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:47:10 +00:00
Benny Prijono 71c8395069 Ticket #537: implemented Simple DNS Server class (for testing) in pjlib-util
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1987 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:18:28 +00:00
Benny Prijono ea8e436fe1 More ticket #531: added user_data parameter in activesocket creation API to make it more robust against programming errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1986 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:12:23 +00:00
Nanang Izzuddin e4b4b7d9a7 Added field maximum bitrate to codec param, this is useful for providing safer frame size calculation, especially when peer's bitrate is unknown
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1985 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 12:15:23 +00:00
Nanang Izzuddin eb4c616cb5 Cleaned up warnings of [u]char-[u]int conversions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1984 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 11:13:36 +00:00
Nanang Izzuddin 3aef5e1b4f Ticket #473:
- fixed issue on Speex multiple frames (encoding: encoded bits concatenation & decoding: frames parsing)
 - updated pjmedia stream & codecs on encoding multiple frames
 - introduced bit_info in pjmedia_frame and jitter buffer



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1983 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-05 10:50:40 +00:00
Nanang Izzuddin 78e259118f Fixed bug in copying buffer and updated post process of buffer shrinking
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1982 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-05 06:17:38 +00:00
Benny Prijono 4304725c30 Fixed gcc warnings about type pruned pointers
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1981 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-04 14:44:29 +00:00
Nanang Izzuddin 7ca463c72f Fixed C & C++ cross linked problem and missing newly added libsrtp.lib in symbian_ua_gui.mmp
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1980 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-03 10:54:12 +00:00
Nanang Izzuddin 6a6392f927 More ticket #61: enabled SRTP on Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1979 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-02 18:30:15 +00:00
Nanang Izzuddin 96691863f3 Fixed Symbian build on OS with case sensitive filename (e.g: Linux)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1978 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-02 16:00:56 +00:00
Nanang Izzuddin d42429715b Fixed uninitialized output size before calling G.722 encoder
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1977 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-02 14:16:36 +00:00
Benny Prijono 5dfac8fb25 Increase clock rate limit in pjsua to 192000 (from 48000)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1976 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-02 14:06:19 +00:00
Nanang Izzuddin ed4d378c3f Fixed wchar_t definition for all build targets.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1975 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-30 13:53:44 +00:00
Nanang Izzuddin c8003c3f8e Added symbian_ua_gui to symbian root build settings (bld.inf), fixed symbian_ua_gui for WINSCW build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1974 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-30 12:47:58 +00:00
Nanang Izzuddin db59d9ef92 Initial source of GUI version of Symbian UA
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1973 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-30 11:35:46 +00:00
Nanang Izzuddin 700e838279 Updated delaybuf to learn burst level in realtime instead of only in the beginning, this can optimize the latency and increase adaptivity
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1972 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-30 11:30:24 +00:00
Nanang Izzuddin 1ec45bf00a Added another WSOLA implementation, PJMEDIA_WSOLA_IMP_WSOLA_LITE, this is used by small devices by default (replacing PJMEDIA_WSOLA_IMP_NULL)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1971 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-30 11:24:37 +00:00
Nanang Izzuddin e85a1835c9 Fixed bug wrong option for resample port between conference bridge and sound device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1970 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-29 11:03:23 +00:00
Nanang Izzuddin 50947e7771 More ticket #536: fixed bug in SrcUD (missed fix, previously r1968 only fixed SrcUp)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1969 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-28 19:15:31 +00:00
Nanang Izzuddin ec19826d37 Reapplied changeset 287 (resample may write pass the output buffer), with a bit optimization
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1968 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-28 17:26:30 +00:00
Benny Prijono b6242b732d Fixed bug in pjmedia_sdp_rtpmap_to_attr(): may overwrite past the buffer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1967 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-28 16:16:26 +00:00
Benny Prijono 563076d59b Added (the missing) libspeexcodec.mmp
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1966 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-28 12:32:53 +00:00
Nanang Izzuddin 829ac0206e Changed build optimizations settings for Speex, pjmedia, and symbian_sound for Symbian. Speex/8000 now also runs on Symbian!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1965 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-27 00:24:26 +00:00
Benny Prijono dfd3052d8e Changed build optimization settings for Speex and pjmedia for eVC4/Windows Mobile. Speex/8000 now runs on Windows Mobile!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1964 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-23 12:31:55 +00:00
Benny Prijono 9b86257bc5 Fixed bug with SRTP enabling configuration for PocketPJ application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1963 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-22 10:49:42 +00:00
Benny Prijono c67f885a66 Fixed Symbian build error caused by active socket addition to pjlib in ticket #531 (thanks Rodrigo Vega)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1962 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-20 08:51:03 +00:00
Nanang Izzuddin 2d4ee7d379 More on ticket #535: updated files using and related to math.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1961 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-17 14:54:18 +00:00
Nanang Izzuddin 415fc6fedf Ticket #535: added initial source of math.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1960 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-17 14:43:46 +00:00
Benny Prijono dd742dab2f Ticket #534: Client register/registration support for various registrar brokenness
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1959 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-17 12:45:00 +00:00
Benny Prijono b58b3e420e Modified pj_list_size() to take const argument instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1958 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-16 13:27:46 +00:00
Benny Prijono 054c5df8fd More ticket #533: fixed bug in Retry-After parser (thanks Samuel Vinson)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1957 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-15 10:07:36 +00:00
Benny Prijono aa5d29d370 Fixed bug with pj_generate_unique_string() initialization trying to access the critical section which has not been created in pj_init(), when guid_simple.c is used on Windows (thanks Roland Klabunde/Thomas)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1956 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-15 09:08:32 +00:00
Nanang Izzuddin 3fd3af9a31 Resample port get frame may cause buffer overflow when downport returns non-audio frame
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1955 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-13 19:24:45 +00:00
Benny Prijono 23110bf308 Ticket #533: Support for parsing Retry-After SIP header
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1954 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-13 09:38:50 +00:00
Benny Prijono 4bac2c1389 Implement ticket #531: active socket abstraction to make ioqueue programming easier
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1953 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-11 18:12:16 +00:00
Benny Prijono 842754c26e Added pj_sockaddr_cp()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1952 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-11 18:11:32 +00:00
Nanang Izzuddin af97484f77 Ticket #524: changed pjsua and stereotest default audio frame time from 10ms to 20ms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1951 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-08 09:51:16 +00:00
Nanang Izzuddin a5538abddc Ticket #527: Commited ticket527.2.patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1950 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-07 15:30:34 +00:00
Benny Prijono 93713fb585 Added nios2 processor settings PJLIB in config.h (thanks F)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1949 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-07 13:28:06 +00:00
Benny Prijono fdb45df95b Added nios2 target detection in config.sub
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1948 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-07 13:19:16 +00:00
Benny Prijono 5516f91a7e Fixed bug: NOTIFY is sent continuously on PJSUA-LIB shutdown
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1947 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-05 12:06:08 +00:00
Benny Prijono fa34806bcd If regc.check_contact is disabled, and no Expires header has been found, but the server does return one single Contact header, assumes that the server is broken/unable to return the correct Contact. In this case, get the expiration from the single Contact header in the response (thanks Alan Bond)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1946 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-04 10:49:40 +00:00
Nanang Izzuddin 5d070f8ec4 More ticket #513:
- Added RTCP XR features on stream: configurable RTCP XR sending interval, third-party destination for RTCP XR, and sending last RTCP XR packet when stream destroyed.
 - Updated end system delay of RTCP XR: sound device latency estimated based on sound device implementation. 




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1945 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-02 15:01:10 +00:00
Nanang Izzuddin db9da77fa2 Ticket #528: committed ticket528.patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1944 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-02 14:50:07 +00:00
Nanang Izzuddin 90f11cbd2f More on ticket #513:
- Added RTCP XR print reports to streamutil.c
 - Added new API pjmedia_stream_get_stat_xr()
 - Added field rtcp_xr_enabled to stream info structure
 - Swapped the wrong RTCP XR statistic storage (encoding direction should be stored in TX, decoding direction in RX, it was the opposite)




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1943 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-29 17:15:41 +00:00
Benny Prijono e8b604daad Ticket #513: Support for RTCP XR (initial patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1942 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-28 18:05:49 +00:00
Benny Prijono 6780ae0251 More ticket #497: added configuration to disable WSOLA and set default to disabled on WinCE and Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1941 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-23 16:07:37 +00:00
Nanang Izzuddin 9375acaf38 Fixed chunk size alignment in pool drain test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1940 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-23 14:35:24 +00:00
Benny Prijono 76da764db2 Workaround for pj_thread_sleep() failure with ETIMEDOUT in MacOS X (thanks Daniel Mikusa)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1939 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-22 22:38:46 +00:00
Benny Prijono 83088f30b2 Fixed bug in invalid Contact address being generated upon NAT detection, when no username part is present in the account ID
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1938 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-22 18:33:55 +00:00
Benny Prijono 6e68ee62ca Added ability to send custom headers in sipstateless sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1937 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-22 18:32:53 +00:00
Benny Prijono 470388d8da Report NAT type as unknown rather than UDP blocked when test 1B failed (could happen when port 3479 is blocked). Thanks Helmut Wolf for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1936 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-22 18:32:16 +00:00
Benny Prijono 6b7834ba10 More ticket #420: creation of IPv6 media streams (tested on SIPit22)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1935 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-22 16:11:07 +00:00
Benny Prijono e7d5a100d6 More ticket #526: committed ticket526.2.patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1934 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-19 00:20:38 +00:00
Benny Prijono 48374a2d62 Fixed bug: the status line in sipfrag content (for REFER) must ends with a CR-LF
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1933 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-17 20:54:22 +00:00
Benny Prijono ddaaf6a75d Use the smart Contact header for TCP/TLS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1931 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-15 10:37:19 +00:00
Benny Prijono 24a21856cb Fixed miscellaneous compile warnings/errors when built with C++ mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1929 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-14 04:04:30 +00:00
Benny Prijono 53a7c70638 Ticket #525: Crash on call update or re-invite (Thanks Alexey)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1928 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-14 02:57:29 +00:00
Benny Prijono 97a575901e Ticket #526: Pjsua crash after wav player destroyed inside the eof callback (thanks Tanguy Floc'h)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1927 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-14 02:51:05 +00:00
Benny Prijono e7226850ad More ticket #485: fixed TURN server permission not allowing peer with the same IP to get through, and added option to disable FINGERPRINT verification in TURN server since it is currently broken when TURN is used with ICE (which has a FINGERPRINT in its Binding Request)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1924 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-13 21:48:44 +00:00
Benny Prijono a11c76a674 More ticket #485: fixed REQUESTED-TRANSPORT endianness
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1923 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 22:24:23 +00:00
Benny Prijono 427d145669 More ticket #505: the jitter buffer only discard one packet at a time when optimizing the delay
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1922 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 11:51:04 +00:00
Benny Prijono c59ca6ecb2 Fixed bug in writing snd_clock_rate configuration to file in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1921 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 11:04:49 +00:00
Benny Prijono c0b83f201c More ticket #451: updated PortAudio to the latest
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1920 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 10:31:55 +00:00
Benny Prijono aeb187d600 More ticket #523: renamed some variable names for clarity
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1919 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 10:15:05 +00:00
Benny Prijono 88efec59b2 Ticket #523: Handle incomplete audio frame from sound device (e.g. OSS)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1918 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 09:53:16 +00:00
Benny Prijono 3cfaf50a34 More ticket #485: now really remove pjstun-srv-test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1917 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 13:38:35 +00:00
Benny Prijono 84fde9e52f More ticket #485: removed pjstun-srv-test project and fixed build errors with gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1916 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 13:34:49 +00:00
Benny Prijono 49786e6b3f Added PJNATH class diagram
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1915 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 12:08:50 +00:00
Benny Prijono a2c0bb2d9d Improve the PJNATH documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1914 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 12:08:08 +00:00
Benny Prijono 879ad1a1b6 More ticket #485: huge changeset to support TURN TCP. Please see ticket #485 for the details
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1913 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 09:38:12 +00:00
Benny Prijono c54dcb3920 As per list report, changed the default response to incoming REFER from 200 to 202 as some gateways do not like this. Thanks Pedro Sanchez for the report
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1912 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-08 23:33:15 +00:00
Benny Prijono 36922711b4 Removed setting PJ_IOQUEUE_HAS_SAFE_UNREG to zero in config_site_sample.h as it is currently not supported
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1911 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-07 13:25:49 +00:00
Benny Prijono a95e929199 Changed PJ_IOQUEUE_MAX_HANDLES count when PJ_CONFIG_MINIMAL_SIZE is set from 16 to 32 as it caused assertion in sock_select.c on Maemo
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1910 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-07 13:16:02 +00:00
Benny Prijono 617b8605e2 Fixed crash in SRTP when incoming SDP is received without any m= line (thanks Atik)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1909 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-07 10:10:31 +00:00
Benny Prijono 7fff9f9778 Ticket #522: Enable keep-alive for UDP transport even when STUN is not configured
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1908 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-04 10:50:21 +00:00
Benny Prijono 6d24ca5e00 Fixed link error to pj_log() in libSRTP if PJ_LOG_MAX_LEVEL is set to zero (thanks Michael CHRISTOPHER)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1907 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-03 22:03:14 +00:00
Benny Prijono 754a4df66c Ticket #521: Duplicate Authorization header when PJSIP is configured to send empty Authorization header (thanks Roland Klabunde)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1906 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-02 20:34:05 +00:00
Benny Prijono 9969d18114 Ticket #520: Race condition may cause ioqueue corruption (thanks Philippe Leuba)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1905 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-02 18:36:35 +00:00
Benny Prijono f279d67118 More work on ticket #485: bug when TURN UDP relay is not destroyed if Allocate request fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1904 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-01 18:23:56 +00:00
Benny Prijono 6381bf370a Ticket #519: STUN request is not freed when transaction times out (thanks Amit Sharma)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1903 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-01 18:21:46 +00:00
Benny Prijono c295d9f962 More ticket #514: bug in previous fix caused invite session to unable to respond to authentication in re-INVITE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1902 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-01 16:37:58 +00:00
Benny Prijono f161655344 More ticket #504: added missing new files!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1901 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-30 08:58:58 +00:00
Benny Prijono 012b7aeb77 Added missing framework link command for MacOS X in Python setup.py (thanks Nir Soffer)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1900 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-29 13:03:47 +00:00
Benny Prijono 03c5c69b48 Ticket #517: Invalid argument error when binding media transport on MacOS X
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1899 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-29 12:40:14 +00:00
Benny Prijono 7d60d052eb Ticket #504: final installment to support stereo audio all the way in PJMEDIA. Please see tickiet #504 for more info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1898 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-29 12:24:20 +00:00
Benny Prijono a171e9edbe Fixed bug in automatic RTCP address calculation causing assertion failure in Symbian with ICE transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1897 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-28 14:06:37 +00:00
Benny Prijono 9ae5dfc6fc More ticket #514: the last fix causes invite session to refuse to send CANCEL!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1896 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-27 17:30:51 +00:00
Benny Prijono cf5c06d5d0 Updated pjmedia_test with the latest jitter buffer API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1895 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-26 16:18:17 +00:00
Benny Prijono ff28155543 Fixed bugs in libsrtp that effect dtls-srtp
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1894 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-26 15:13:30 +00:00
Benny Prijono 70119f6363 Ticket #516: Assertion in sound device when headset is plugged/unplugged in MacOS X (thanks Alexei Kuznetsov)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1893 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-25 17:05:59 +00:00
Benny Prijono a9948e6189 Fixed autoconf configure warning when detecting mswsock.h on Mingw
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1892 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-25 14:03:01 +00:00
Benny Prijono 188ba7ef2d Fixed autoconf configure warning when detecting net/if.h on MacOS X
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1891 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-25 13:53:16 +00:00
Benny Prijono 3a3f078323 More ticket #451: fixed build error on MacOS X caused by new PA
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1890 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-25 10:09:20 +00:00
Benny Prijono e8554ef92f Ticket #515 (Update Contact header in REGISTER for TCP/TLS transport)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1889 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-22 09:33:52 +00:00
Benny Prijono 1add4d5206 Added comment about byte ordering in TURN CHANNEL-NUMBER attribute and modified select() parameter in TURN client
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1888 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-22 09:33:26 +00:00
Benny Prijono 096fadb50d Ticket #505: optimizing the jitter buffer delay
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1887 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21 13:47:23 +00:00
Benny Prijono 6eddd87872 Enlarge the buffer for printing call media statistic in pjsua (sometimes the RTT line is cut)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1886 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21 13:46:08 +00:00
Benny Prijono e2303e3f45 More ticket #485: wrong encoding of CHANNEL-NUMBER attribute
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1885 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21 09:43:59 +00:00
Benny Prijono 573b78c5b1 More ticket #61: (after rolling back previously buggy patch) Fixed bug in pjsua-lib with SRTP. If call is hold and resumed, SRTP transports will use itself as the underlying transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1884 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21 09:15:50 +00:00
Benny Prijono 68f9e4f2fc More ticket #61: bug in pjsua-lib with SRTP. If call is hold and resumed, SRTP transports will use itself as the underlying transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1883 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21 08:56:02 +00:00
Benny Prijono 6885400185 More ticket #485: updated Makefiles and fixed compilation warnings with gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1882 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20 19:21:27 +00:00
Benny Prijono 522e5e14a5 Fixed minor warning about unused variable in transport_srtp.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1881 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20 18:34:01 +00:00
Benny Prijono 4d5931ec04 More ticket #485: fixed TURN transport code point and REQUESTED-TRANSPORT attribute encoding
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1880 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20 18:26:26 +00:00
Benny Prijono 9e6d60a564 More ticket #485: client and server self tested
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1879 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20 16:32:06 +00:00
Benny Prijono 22e48c9878 Ticket #514: bug with handling simultaneous outgoing re-INVITE, the invite session does not check if we have an ongoing INVITE transaction (thanks Philippe Leuba)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1878 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20 14:40:50 +00:00
Benny Prijono a5d214f997 Related to ticket #485: huge changeset to update STUN relating to managing authentication. See the ticket for the details
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1877 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-19 23:00:30 +00:00
Benny Prijono b4d107ec45 More ticket #451: build error on Mingw with the latest PortAudio (thanks Matti Zemack)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1876 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-19 17:06:09 +00:00
Benny Prijono 5e248392d7 More ticket #497: division by zero in wsola when min_extra is set to zero (the default value)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1875 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-19 14:35:43 +00:00
Benny Prijono 5297af9f59 Related to ticket #353: still memory leak with pjsua wav player (thanks Arie Velthoen)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1874 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-18 13:40:40 +00:00
Benny Prijono 734fc2d550 More ticket #479: bug in pjmedia_transport_get_info(), the info should be initialized by caller
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1873 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-17 16:05:35 +00:00
Benny Prijono f9f17b13e6 More ticket #507: fixed the bug introduced in r1871 about operator precedence
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1872 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-17 15:58:32 +00:00
Benny Prijono 71f657df1d More ticket #507: updated GNU build system with the G.722 codec and fixed minor warning about operator precedence
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1871 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-17 14:24:21 +00:00
Benny Prijono 7ffd7752fd Ticket #507: committed and tested g722 patch on Windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1870 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-17 14:07:53 +00:00
Benny Prijono 17d10b50c1 More ticket #485: initial test on TURN client/server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1869 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-14 17:56:11 +00:00
Benny Prijono 34b00741a1 Ticket #512: Bug in select ioqueue causing unnecessary sleep() to be invoked (thanks Sergey Bakulin)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1868 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-13 21:51:51 +00:00
Benny Prijono 5ac0bd7a4d More ticket #485: added TURN client application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1867 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-13 15:11:29 +00:00
Benny Prijono 6e7c5add56 More ticket #504: buffer overflow in splitcomb when handling stereo audio
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1866 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-13 10:15:16 +00:00
Benny Prijono 27ae857973 Ticket #451: Updated PortAudio to the latest version
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1865 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-12 23:21:06 +00:00
Benny Prijono c85043fcae More ticket #485: added TURN client session/UDP client to pjnath VS6 project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1864 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-12 23:14:02 +00:00
Benny Prijono 0b46232291 Ticket #511: Add --disable-oss option to disable OSS in configure script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1863 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-12 22:44:24 +00:00
Benny Prijono 03b54859b6 More ticket #485: implementation of TURN UDP client session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1862 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-12 20:52:16 +00:00
Benny Prijono e11c581911 Ticket #504: fixed stream.c for stereo codecs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1861 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 21:47:04 +00:00
Benny Prijono e1a5a852c0 Ticket #479: allow media transport framework to return transport specific info (for example, to know whether SRTP is enabled)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1860 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 21:38:05 +00:00
Benny Prijono c12bc10c04 Ticket #494: Configuration option to use high quality tone generation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1859 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 20:50:46 +00:00
Benny Prijono 6111193217 Added missing PJ_INT64() macro for Symbian compilers
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1858 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 13:38:37 +00:00
Benny Prijono bcc7d0df06 More ticket #7: fixed undefined symbol on Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1857 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 13:37:25 +00:00
Benny Prijono 4d3eed1c20 Ticket #493: added EC settings in dialog
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1856 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 13:18:48 +00:00
Benny Prijono 50f19b3250 More ticket #495: bug in snd_clock_rate causing unability to open sound device on WinCE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1855 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11 13:15:43 +00:00
Benny Prijono 3fd9fc5f06 More ticket #485: initial (incomplete) work on TURN client session library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1854 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09 23:52:48 +00:00
Benny Prijono 4f8536c08a Added more files in SVN ignore spec for PocketPJ application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1853 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09 12:56:58 +00:00
Benny Prijono 708725a869 More work for ticket #485: updated pjnath with TURN-07 and added authentication in the server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1852 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09 12:55:00 +00:00
Benny Prijono e8df45f381 Make SIP and RTP ports in simpleua configurable, and add initial support for IPv6 too
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1851 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-08 09:26:22 +00:00
Benny Prijono b05aafc1a7 More work on ticket #485: more TURN-07 work
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1850 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-08 00:54:04 +00:00
Benny Prijono 9963998a85 Ticket 467: dont send SDP with BYE!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1849 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-07 14:39:52 +00:00
Benny Prijono 8cc996a7e4 Ticket #504: assertion in sound device and recfile sample when using stereo
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1848 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-07 14:32:29 +00:00
Benny Prijono a99539c2a6 More ticket #438: wrong param passed to shrink_buffer() in set_max_cnt(), should be (buf_cnt - new_max_cnt), instead of (old_max_cnt - new_max_cnt)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1847 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-05 17:41:42 +00:00
Benny Prijono 00d15a5beb Ticket #502: New packet lost concealment (PLC) implementation and enable PLC on G711 and GSM codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1846 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04 16:23:42 +00:00
Benny Prijono c97d686570 More ticket #497: bug on pjmedia_wsola_save() when extra samples exceed samples_per_frame
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1845 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04 16:13:01 +00:00
Benny Prijono 98b6df8d52 More ticket #438: improve docs, added channel_count in wsola, etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1844 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04 15:37:45 +00:00
Benny Prijono d34477c8d1 Ticket #501: Set master port worker thread priority to highest by default
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1843 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04 15:31:13 +00:00
Benny Prijono 4a0b28ae81 Ticket #500: implementation of thread priority setting on os_core_unix.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1842 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04 14:49:27 +00:00
Benny Prijono 8f7adf70cf Ticket #500: Added function to set thread priority in PJLIB
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1841 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04 14:45:19 +00:00
Benny Prijono f6654c5230 Ticket #438: added delaybuf in splitcomb. Please see the checkin comment in ticket #438 for the details
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1840 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-03 14:20:41 +00:00
Benny Prijono 93be97605f Ticket #499: NULL frame transmission in conference bridge is not clocked at the right interval
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1839 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-03 13:25:17 +00:00
Benny Prijono e8ec158884 Ticket #497: changed clock rate variable in WSOLA from uint16 to uint32 to handle higher clock rate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1838 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-03 13:19:20 +00:00
Benny Prijono 52cde927b5 Ticket #498: Option in client registration to ignore Contact address in REGISTER response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1837 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-02 10:37:41 +00:00
Benny Prijono 161ae3a3fd Disable overflow/underflow test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1836 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-01 21:37:57 +00:00
Benny Prijono 65afd885c9 More ticket #438: changed API call to delay_buf_create()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1835 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-29 19:29:16 +00:00
Benny Prijono 07f6cc7920 Added checking in delaybuf for buffer empty before calling shrink_buffer()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1834 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-29 18:00:34 +00:00
Benny Prijono 5dbd4fce62 Ticket #438: Workaround for frame bursts from audio devices: added wsola in delaybuf, and put delaybuf in the bridge
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1833 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-29 17:19:42 +00:00
Benny Prijono 5887d024d1 Put wsola_test.c in pjmedia test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1832 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-29 12:05:33 +00:00
Benny Prijono 031775ce3f Added pjmedia_wsola_reset()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1831 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-29 12:00:46 +00:00
Benny Prijono 0bdf7777f8 Fixed bug caused by ticket #412: critical section is not released!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1830 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-29 10:22:34 +00:00
Benny Prijono 4c8475dacc Fixed bug in wsola when discarding frame in non-contiguous buffer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1829 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-28 23:39:38 +00:00
Benny Prijono c4f62fd3b0 Added 100rel module initialization in pjsip-perf.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1828 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-28 21:46:22 +00:00
Benny Prijono c8f43b3d30 Modify WSOLA discard to support erasing frame from non-contiguous buffer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1827 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-28 20:22:16 +00:00
Benny Prijono 713ccabccc A little bit of optimization in WSOLA
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1826 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-28 16:28:41 +00:00
Benny Prijono 800521c759 Ticket #496: Crash on sound port when only player is opened and delaybuf enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1825 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-28 14:16:43 +00:00
Benny Prijono 4727a9a6de Ticket #497: WSOLA implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1824 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-28 14:08:59 +00:00
Benny Prijono f3758ee6f8 Ticket #495: ability to specify different clock rate when opening sound device
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1823 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-26 15:32:16 +00:00
Benny Prijono e9e29568d2 Stateful proxy sample: do not create CANCEL if UAC INVITE transaction has been responded with final response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1822 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-26 11:14:03 +00:00
Benny Prijono 5d177b88db Fixed bug in ticket #455 in round-robin call ID allocation (thanks Truong Thanh Quang)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1821 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-26 10:31:28 +00:00
Benny Prijono 5796dca5b6 Minor PocketPJ GUI tweak
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1820 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-23 00:24:44 +00:00
Benny Prijono 5d9c16f65e Ticket #493: PocketPC, a new and better sample application for PocketPC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1819 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-22 23:38:47 +00:00
Benny Prijono 4768c3c9fd Ticket #7: Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time (thanks Philippe Leuba)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1818 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-22 11:10:17 +00:00
Benny Prijono 5933e05461 Ticket #491: Crash in TCP/TLS transport when the listener is destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1817 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-22 09:56:27 +00:00
Benny Prijono 7433446236 Ticket #492: Bug in strict route processing when challenged with 401/407 response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1816 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-22 08:36:06 +00:00
Benny Prijono 8389c31c97 Ticket #412: increased randomness of guid_simple.c to 192-bits, and seed random number generator in pjsua_core.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1815 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 21:36:34 +00:00
Benny Prijono 87402389b7 Ticket #488: When outgoing request within dialog is responded with 481 or 408, should send BYE after terminating dialog (thanks Philippe Leuba)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1814 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 19:28:21 +00:00
Benny Prijono 7df2a15847 Ticket #486: Handle G.722 wong clock rate bug and other codec with inconsistent clock rate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1813 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 16:46:34 +00:00
Benny Prijono d1e862ffc5 Ticket #485: initial TURN server implementation (not yet compilable)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1812 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 15:54:27 +00:00
Benny Prijono 2c888e01ca Ticket #485: initial modification in STUN messaging in accordance to TURN-06
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1811 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 15:38:36 +00:00
Benny Prijono 2dbed82495 Ticket #467: fixed issues with RTP/AVP vs RTP/SAVP negotiation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1810 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 10:08:27 +00:00
Benny Prijono d72d68675c Ticket #487: Crash occured when stream port has no transmitter on call using ILBC with different ptime
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1809 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 09:00:36 +00:00
Benny Prijono c5b6de1dc9 Ticket #468: Added support for non looping playback in memory player
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1808 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 08:51:37 +00:00
Benny Prijono e3197e3065 Replaced fprintf/printf with err_report()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1807 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 07:53:35 +00:00
Benny Prijono fc13bf6ed7 Ticket #489: New PJSUA callbacks to notify application when media stream is created and destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1806 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-20 08:56:15 +00:00
Benny Prijono f430e41536 Allow receiving SDP with lines terminated with LF instead of CRLF (thanks Juri Glass)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1805 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-18 13:50:55 +00:00
Benny Prijono a8ff8ebb96 Fixed crash when running SRTP on Win32 app since stderr is undefined (thanks Truong Thanh Quang)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1804 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-18 12:27:47 +00:00
Benny Prijono 57affd0332 Build error when PJ_IOQUEUE_MAX_HANDLES is declared to large value on Visual Studio (thanks Truong Thanh Quang)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1803 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-18 12:22:15 +00:00
Benny Prijono fe5a694cc6 Fixed build error if SRTP is disabled in compile time (thanks Helmut Wolf)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1802 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-18 12:16:23 +00:00
Benny Prijono a1179ca4b6 Ticket #480: PJSIP rejects incoming call with m=image in the offer (thanks Thiago)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1801 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-15 17:33:15 +00:00
Benny Prijono 19450bebc4 Ticket #482: TCP keep-alive packets are corrupting SIP message (thanks Helmut Wolf)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1800 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-15 17:26:47 +00:00
Benny Prijono 0ee4dde130 Ticket #481: Default TLS version should be TLSv1 (thanks Klaus Darilion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1799 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-15 08:08:06 +00:00
Benny Prijono 45930a5de6 Ticket #478: Handle duplicated/misordered incoming DTMF packets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1798 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 19:45:47 +00:00
Benny Prijono 0c97d53814 Ticket #477: DTMF digit callback error in Python
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1797 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 15:50:46 +00:00
Benny Prijono 0c06826053 Added link to discussions about on_dtmf_callback() concurrency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1796 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 14:38:52 +00:00
Benny Prijono 8ac081b0b5 More ticket #469: fix in ioqueue to handle case when key has been unregistered when recvfrom() is called
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1795 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 14:20:38 +00:00
Benny Prijono e3994fb07f More ticket #469: bail out from on_rx_rtp/rtcp loop if recvfrom returns PJ_ECANCELLED. This errno is returned when the key is mark as closing, which could happen when user closes the key inside the callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1794 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 14:14:57 +00:00
Benny Prijono 0e2c646639 Ticket #475: ported GSM codec to Symbian OS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1793 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 13:39:24 +00:00
Benny Prijono e53a04a723 Implemented ticket #474 for Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1792 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 13:34:55 +00:00
Benny Prijono 91476bfb33 Handle short files in WAV player
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1791 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-14 09:57:05 +00:00
Benny Prijono 69036b7773 Ticket #460: Concurrency problem when destroying stream (thanks Michael Broughton)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1790 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-13 16:59:29 +00:00
Benny Prijono e3f79fd62c Ticket #474: option in ioqueue to control concurrency (to allow/disallow simultaneous/multiple callback calls)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1789 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-13 15:17:28 +00:00
Benny Prijono 40fe908e12 More ticket #472: Fixed problem when building on Mingw. Now PJ_FD_SETSIZE_SETABLE is only enabled when winsock.h is present
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1788 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-08 15:21:41 +00:00
Benny Prijono c2e348130d More ticket #470: semaphore got disabled on Mingw because semaphore.h is not present
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1787 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-08 15:18:20 +00:00
Benny Prijono 8b22ce1030 Minor error: wrong logging info when printing RTP socket address
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1786 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-08 12:57:55 +00:00
Benny Prijono b1cf890ef9 Fixed compilation errors on Symbian and others caused by ticket #472 (FD_SETSIZE was removed)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1785 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-08 09:43:30 +00:00
Benny Prijono aa99eef0c4 Related to ticket #61: disable SRTP on Symbian while it is not ported yet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1784 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-08 08:49:24 +00:00
Benny Prijono 1c5f4e479e Ticket #470, #471, and #472: Compile error when semaphore.h is not present, Compilation error if pthread_mutexattr_set_type() is not present, and Problem with setting up FD_SETSIZE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1783 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-07 13:11:39 +00:00
Benny Prijono 1b911ba805 Fixed compilation error on libsrtp in crypto/aes.c when it finds the wrong err.h to be included. The solution was to change the order of include paths in Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1782 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-07 11:58:04 +00:00
Benny Prijono f6e7764ccb Added missing <math.h> include in playsine.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1781 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-07 11:55:05 +00:00
Benny Prijono 378484d994 Removed const on on_rx_rtp() and on_rx_rtcp() functions arguments in stream.c and srtp.c (const was removed in r1763)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1780 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-07 11:53:47 +00:00
Benny Prijono db844a4e5d More ticket #61: fixed signaling security level calculation for SRTP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1774 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02 17:07:18 +00:00
Benny Prijono c4bb78ba5a More ticket #465: option to return UDP header in pj_pcap_read_udp(), and better RTP packet handling in pcaputil sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1769 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02 09:12:13 +00:00
Benny Prijono 1a68b66db2 Fixed warning about uninitialized tpinfo variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1768 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02 09:09:27 +00:00
Benny Prijono 9eb0b71816 Added trace to PCAP reader
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1767 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02 08:22:20 +00:00
Benny Prijono 41b15db7c4 More ticket #465: updated VS8 and WinCE projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1766 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-01 16:44:25 +00:00
Benny Prijono 0f85672335 Ticket #465: utility to read PCAP file and sample application to read RTP files from PCAP file, decode the payload, and write the PCM output to WAV file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1765 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-01 14:59:19 +00:00
Benny Prijono 012fe0a2c4 More ticket #61: mismatch in libsrtp output library name causing error when building samples on VC6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1764 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-01 14:53:44 +00:00
Benny Prijono 527a236a59 More ticket #61: removed const from rtp and rtcp callback function declaration to allow in-place packet modification
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1763 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-01 14:47:31 +00:00
Benny Prijono 4085b1f2cb Added media transport diagram for documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1762 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-31 21:26:44 +00:00
Benny Prijono 6665bfc2f9 Ticket #464: jitter buffer should return frame length information
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1761 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-31 08:11:30 +00:00
Benny Prijono 480287117a Ticket #61: undo r1759 and replace it with other patches to fix unable to accept RTP/AVP offer with a=crypto attribute when use_sdp is set to zero. Also minor fix to streamutil
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1760 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-30 09:47:57 +00:00
Benny Prijono af1f56c458 Ticket #61: bug, unable to accept RTP/AVP with crypto attribute when use_srtp is set to zero
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1759 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-29 17:40:00 +00:00
Benny Prijono 3ec13c716e Ticket #61: --srtp-use option in pjsua did not change account config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1758 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-29 11:52:58 +00:00
Benny Prijono bc2219bc48 Added pj_strstr() and pj_stristr() in pjlib
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1757 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-26 10:45:52 +00:00
Benny Prijono 423f641465 Bug: source address not initialized in loop transport causing pjsip-test to fail
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1756 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-26 10:45:02 +00:00
3180 changed files with 1087021 additions and 165665 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
root = true
# properties
[*.{h,c,hpp,cpp,m,java}]
insert_final_newline = true
indent_style = space
indent_size = 4
# trim_trailing_whitespace = true

2
.git-blame-ignore-revs Normal file
View File

@ -0,0 +1,2 @@
# expand tab to spaces and remove $Id$ (#3292)
5ac9104514499d648f68991ef796368c51b4dfec

64
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@ -0,0 +1,64 @@
name: Bug report
description: File a bug report
body:
- type: markdown
attributes:
value: |
Thank you for filing a bug report with us. We appreciate your effort in helping us improve our software.
**IMPORTANT**: Please note that this form is **strictly** for reporting bugs, and as such, any questions or inquiries that are not related to bugs will be closed. We apologize for any inconvenience this may cause and appreciate your understanding in keeping our bug reporting system focused and efficient.
- type: textarea
id: bug-desc
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: |
E.g: Assertion when answering an incoming video call with response code 183.
validations:
required: true
- type: textarea
id: bug-repro
attributes:
label: Steps to reproduce
description: Describe how to reproduce the bug using sample apps such as [pjsua app](https://www.pjsip.org/pjsua.htm), [pjsua2 android](https://docs.pjsip.org/en/latest/get-started/android/build_instructions.html#building-and-running-pjsua2-sample-application), [iOS ipjsua](https://docs.pjsip.org/en/latest/get-started/ios/build_instructions.html#building-pjsip), or [other sample apps](https://github.com/pjsip/pjproject/tree/master/pjsip-apps/src/samples).
placeholder: |
E.g:
1. run pjsua app with parameter: `--video --registrar sip:some.sip.registrar ...`
2. make video call from other SIP client or another pjsua instance
3. answer the call with 180 and soon 183, assertion occurs!
The assertion didn't occur if the call was answered with 183 directly.
validations:
required: true
- type: input
id: version
attributes:
label: PJSIP version
description: What PJSIP version are you using? (We suggest testing with the latest version to ensure that the bug is still present and has not been resolved.)
placeholder: |
E.g: 2.13
validations:
required: true
- type: textarea
id: context
attributes:
label: Context
description: |
Context where the bug occurs, e.g: platform, device, OS version, configuration settings.
placeholder: |
E.g:
- The issue happens on Windows/Linux/MacOS desktop, iPhone 12, or Android device XYZ.
- App is built using Android NDK r20 or newer.
- 'configure-android' param: ...
- 'config_site.h' contents: ...
- Related third-party lib & version: ... (e.g: OpenSSL 1.1.1b)
- Applied patch(es): (e.g: patches from issue/PR #xyz)
validations:
required: true
- type: textarea
id: logs
attributes:
label: Log, call stack, etc
description: Please copy and paste any relevant PJSIP log output (with verbosity level 5), call stack trace, etc which may be useful for the investigation. This will be automatically formatted into code, so no need for backticks.
render: shell
validations:
required: true

4
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,4 @@
blank_issues_enabled: false
contact_links:
- name: PJSIP tag on Stack Overflow
url: https://stackoverflow.com/questions/tagged/pjsip

View File

@ -0,0 +1,28 @@
name: Feature request
description: Submit a feature request
labels: 'type: enhancement'
body:
- type: markdown
attributes:
value: |
Thank you for submitting a feature request to us.
**IMPORTANT**: Please note that this form is **strictly** for feature request submission, and as such, any questions or inquiries that are not related to feature requests will be closed. We apologize for any inconvenience this may cause and appreciate your understanding in keeping our Github issues focused and efficient.
- type: textarea
id: feature-req
attributes:
label: Describe the feature
description: A clear and concise description of what feature you wish for.
validations:
required: true
- type: textarea
id: alt-solution
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've
considered.
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.

View File

@ -0,0 +1,31 @@
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->
## Screenshots (if appropriate):
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the **CONTRIBUTING** document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.

192
.github/workflows/ci-linux.yml vendored Normal file
View File

@ -0,0 +1,192 @@
name: CI Linux
on:
push:
branches:
- 'master'
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-ubuntu-default:
# checking pure lib source distribution with plain configure & make
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
run: make
ubuntu-default-full-bundle-1:
# full bundle: enable all codecs + AEC + DTLS
# full bundle 1: running pjlib, pjlib-util, pjmedia, and pjsua tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y swig sip-tester libopencore-amrnb-dev
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h
- name: configure
run: CFLAGS="-g -fPIC" CXXFLAGS="-g -fPIC" LDFLAGS="-rdynamic" ./configure
- name: make
run: make
- name: swig bindings
run: cd pjsip-apps/src/swig && make
- name: set up Python 3.10 for pjsua test
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: unit tests
run: make pjlib-test-ci pjlib-util-test pjmedia-test pjsua-test
ubuntu-default-full-bundle-2:
# full bundle 2: running pjnath test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y libopencore-amrnb-dev
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h
- name: configure
run: CFLAGS="-g" LDFLAGS="-rdynamic" ./configure
- name: make
run: make
- name: unit tests
run: make pjnath-test
ubuntu-default-full-bundle-3:
# full bundle 3: running pjsip test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y libopencore-amrnb-dev
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h
- name: configure
run: CFLAGS="-g" LDFLAGS="-rdynamic" ./configure
- name: make
run: make
- name: unit tests
run: make pjsip-test
build-ubuntu-no-tls:
# no TLS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y swig
- name: configure
run: CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --disable-ssl
- name: make
run: make
- name: swig bindings
run: cd pjsip-apps/src/swig && make
# build-ubuntu-openssl
# TLS: with OpenSSL (same as build-ubuntu-default)
build-ubuntu-gnu-tls:
# TLS: with GnuTLS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get update && sudo apt-get install -y --fix-missing swig libgnutls28-dev
- name: configure
run: CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --with-gnutls=/usr/
- name: make
run: make
- name: swig bindings
run: cd pjsip-apps/src/swig && make
ubuntu-video-openh264-1:
# video: video enabled with vpx and openh264
# video 1: running pjlib, pjlib-util, pjmedia, and pjsua tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y swig nasm sip-tester libvpx-dev libopencore-amrnb-dev
- name: get openh264
run: git clone --single-branch --branch openh264v2.1.0 https://github.com/cisco/openh264.git
- name: build openh264
run: cd openh264 && make && sudo make install && sudo ldconfig
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h && echo "#define PJMEDIA_HAS_VIDEO 1" >> config_site.h
- name: configure
run: CFLAGS="-g -fPIC -DHAS_VID_CODEC_TEST=0" CXXFLAGS="-g -fPIC" LDFLAGS="-rdynamic" ./configure
- name: make
run: make
- name: swig bindings
run: cd pjsip-apps/src/swig && make
- name: set up Python 3.10 for pjsua test
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: unit tests
run: make pjlib-test-ci pjlib-util-test pjmedia-test pjsua-test
ubuntu-video-openh264-2:
# video 2: running pjnath test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y nasm libvpx-dev libopencore-amrnb-dev
- name: get openh264
run: git clone --single-branch --branch openh264v2.1.0 https://github.com/cisco/openh264.git
- name: build openh264
run: cd openh264 && make && sudo make install && sudo ldconfig
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h && echo "#define PJMEDIA_HAS_VIDEO 1" >> config_site.h
- name: configure
run: CFLAGS="-g" LDFLAGS="-rdynamic" ./configure
- name: make
run: make
- name: unit tests
run: make pjnath-test
ubuntu-video-openh264-3:
# video: 3: running pjsip test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y nasm libvpx-dev libopencore-amrnb-dev
- name: get openh264
run: git clone --single-branch --branch openh264v2.1.0 https://github.com/cisco/openh264.git
- name: build openh264
run: cd openh264 && make && sudo make install && sudo ldconfig
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h && echo "#define PJMEDIA_HAS_VIDEO 1" >> config_site.h
- name: configure
run: CFLAGS="-g" LDFLAGS="-rdynamic" ./configure
- name: make
run: make
- name: unit tests
run: make pjsip-test
build-ubuntu-video-ffmpeg:
# video enabled with vpx and ffmpeg and x264
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install -y swig nasm libx264-dev libvpx-dev
- name: get ffmpeg
run: git clone --single-branch --branch release/4.2 https://github.com/FFmpeg/FFmpeg.git
- name: configure ffmpeg
run: cd FFmpeg && ./configure --enable-shared --disable-static --enable-gpl --enable-libx264
- name: build ffmpeg
run: cd FFmpeg && make -j10 && sudo make install
- name: config site
run: echo -e "#define PJMEDIA_HAS_VIDEO 1\n" > pjlib/include/pj/config_site.h
- name: configure
run: CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: swig bindings
run: cd pjsip-apps/src/swig && make

224
.github/workflows/ci-mac.yml vendored Normal file
View File

@ -0,0 +1,224 @@
name: CI Mac
on:
push:
branches:
- 'master'
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-mac-default:
# checking pure lib source distribution with plain configure & make
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
run: make
mac-default-full-bundle-1:
# full bundle: enable all codecs + AEC + DTLS
# full bundle 1: running pjlib, pjlib-util, pjmedia, and pjsua tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl opencore-amr swig sipp
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h
- name: configure
run: CFLAGS="-g $(pkg-config --cflags openssl) $(pkg-config --cflags opencore-amrnb) -fPIC" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib $(pkg-config --libs-only-L opencore-amrnb)" CXXFLAGS="-g -fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: unit tests
run: make pjlib-test-ci pjmedia-test pjlib-util-test pjsua-test
mac-default-full-bundle-2:
# full bundle 2: running pjnath test
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl opencore-amr
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h
- name: configure
run: CFLAGS="-g $(pkg-config --cflags openssl) $(pkg-config --cflags opencore-amrnb)" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib $(pkg-config --libs-only-L opencore-amrnb)" ./configure
- name: make
run: make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: unit tests
run: make pjnath-test
mac-default-full-bundle-3:
# full bundle 3: running pjsip test
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl opencore-amr
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h
- name: configure
run: CFLAGS="-g $(pkg-config --cflags openssl) $(pkg-config --cflags opencore-amrnb)" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib $(pkg-config --libs-only-L opencore-amrnb)" ./configure
- name: make
run: make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: unit tests
run: make pjsip-test
# build-ubuntu-no-tls:
# no TLS (same as build-mac-default)
build-mac-openssl:
# TLS: with OpenSSL
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl swig
- name: configure
run: CFLAGS="$(pkg-config --cflags openssl) -fPIC" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
build-mac-gnu-tls:
# TLS: with GnuTLS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install swig
- name: configure
run: CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --with-gnutls=/usr/local/
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
mac-video-openh264-1:
# video: video enabled with vpx and openh264
# video 1: running pjlib, pjlib-util, pjmedia, and pjsua tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl openh264 libvpx opencore-amr swig sipp
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h && echo "#define PJMEDIA_HAS_VIDEO 1" >> config_site.h
- name: configure
run: CFLAGS="-g $(pkg-config --cflags openssl) $(pkg-config --cflags opencore-amrnb) -DHAS_VID_CODEC_TEST=0 -fPIC" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib $(pkg-config --libs-only-L opencore-amrnb)" CXXFLAGS="-g -fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: unit tests
run: make pjlib-test-ci pjmedia-test pjlib-util-test pjsua-test
mac-video-openh264-2:
# video 2: running pjnath test
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl openh264 libvpx opencore-amr
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h && echo "#define PJMEDIA_HAS_VIDEO 1" >> config_site.h
- name: configure
run: CFLAGS="-g $(pkg-config --cflags openssl) $(pkg-config --cflags opencore-amrnb)" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib $(pkg-config --libs-only-L opencore-amrnb)" ./configure
- name: make
run: make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: unit tests
run: make pjnath-test
mac-video-openh264-3:
# video 3: running pjsip test
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl openh264 libvpx opencore-amr
- name: config site
run: cd pjlib/include/pj && cp config_site_test.h config_site.h && echo "#define PJMEDIA_HAS_VIDEO 1" >> config_site.h
- name: configure
run: CFLAGS="-g $(pkg-config --cflags openssl) $(pkg-config --cflags opencore-amrnb)" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib $(pkg-config --libs-only-L opencore-amrnb)" ./configure
- name: make
run: make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: unit tests
run: make pjsip-test
build-mac-video-ffmpeg:
# video enabled with vpx and ffmpeg and x264
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl x264 libvpx nasm swig
- name: get ffmpeg
run: git clone --single-branch --branch release/7.0 https://github.com/FFmpeg/FFmpeg.git
- name: configure ffmpeg
run: cd FFmpeg && LDFLAGS="-Wl,-ld_classic" ./configure --enable-shared --disable-static --enable-gpl --enable-libx264
- name: build ffmpeg
run: cd FFmpeg && make -j10 && sudo make install
- name: config site
run: echo -e "#define PJMEDIA_HAS_VIDEO 1\n" > pjlib/include/pj/config_site.h
- name: configure
run: CFLAGS="$(pkg-config --cflags openssl) -fPIC" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
build-mac-video-vid-toolbox:
# video enabled with vpx and video toolbox
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: brew install openssl libvpx swig
- name: config site
run: echo -e "#define PJMEDIA_HAS_VIDEO 1\n#define PJMEDIA_HAS_VID_TOOLBOX_CODEC 1\n" > pjlib/include/pj/config_site.h
- name: configure
run: CFLAGS="$(pkg-config --cflags openssl) -fPIC" LDFLAGS="$(pkg-config --libs-only-L openssl) $(pkg-config --libs-only-L openssl)/lib" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make

321
.github/workflows/ci-win.yml vendored Normal file
View File

@ -0,0 +1,321 @@
name: CI Windows
on:
push:
branches:
- 'master'
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-windows-default:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: get swig
run: Invoke-WebRequest -Uri "https://github.com/pjsip/third_party_libs/raw/main/swigwin-4.1.1.zip" -OutFile ".\swigwin.zip"
shell: powershell
- name: expand swig
run: |
Expand-Archive -LiteralPath .\swigwin.zip -DestinationPath .\swigwin\; pwd
cd swigwin\swigwin-4.1.1
Add-Content ..\..\swig_path.txt $pwd.Path
shell: powershell
- name: config site
run:
type nul > pjlib/include/pj/config_site.h
shell: cmd
- name: MSBuild
run: |
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
msbuild pjproject-vs14.sln /p:PlatformToolset=v143 /p:Configuration=Debug /p:Platform=win32
shell: cmd
- name: build swig
run: |
set /P SWIG_PATH=<swig_path.txt
set PATH=%PATH%;%SWIG_PATH%
dir pjlib/include/pj/config_site.h
type pjlib/include/pj/config_site.h
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
set INCLUDE=%INCLUDE%;%JAVA_HOME%\include;%JAVA_HOME%\include\win32
cd pjsip-apps/build
msbuild swig_java_pjsua2.vcxproj /p:PlatformToolset=v143 /p:Configuration=Debug /p:Platform=win32 /p:UseEnv=true
shell: cmd
windows-with-openssl-unit-test-1:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: get openssl
run: Invoke-WebRequest -Uri "https://github.com/pjsip/third_party_libs/raw/main/openssl-1.1.1s-win.zip" -OutFile ".\openssl.zip"
shell: powershell
- name: expand openssl
run: |
Expand-Archive -LiteralPath .\openssl.zip -DestinationPath .;
cd openssl_build
Add-Content ..\openssl_dir.txt $pwd.Path
shell: powershell
- name: check openssl folder
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
dir %OPENSSL_DIR%\include
dir %OPENSSL_DIR%\lib
shell: cmd
- name: config site
run:
cd pjlib/include/pj; cp config_site_test.h config_site.h; Add-Content config_site.h "#define PJ_HAS_SSL_SOCK 1"
shell: powershell
- name: check VsDevCmd.bat
run: dir "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
shell: cmd
- name: MSBuild
working-directory: .
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
set INCLUDE=%INCLUDE%;%OPENSSL_DIR%\include
set LIB=%LIB%;%OPENSSL_DIR%\lib
msbuild pjproject-vs14.sln /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd
- name: unit tests
run: |
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd pjlib/bin; ./pjlib-test-i386-Win32-vc14-Release.exe --ci-mode
cd ../../pjlib-util/bin; ./pjlib-util-test-i386-Win32-vc14-Release.exe
cd ../../pjmedia/bin/; ./pjmedia-test-i386-Win32-vc14-Release.exe
shell: powershell
windows-with-openssl-unit-test-2:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: get openssl
run: Invoke-WebRequest -Uri "https://github.com/pjsip/third_party_libs/raw/main/openssl-1.1.1s-win.zip" -OutFile ".\openssl.zip"
shell: powershell
- name: expand openssl
run: |
Expand-Archive -LiteralPath .\openssl.zip -DestinationPath .; pwd
cd openssl_build
Add-Content ..\openssl_dir.txt $pwd.Path
shell: powershell
- name: check openssl folder
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
dir "%OPENSSL_DIR%\include"
dir "%OPENSSL_DIR%\lib"
shell: cmd
- name: config site
run:
cd pjlib/include/pj; cp config_site_test.h config_site.h; Add-Content config_site.h "#define PJ_HAS_SSL_SOCK 1"
shell: powershell
- name: check VsDevCmd.bat
run: dir "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
shell: cmd
- name: MSBuild
working-directory: .
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
set INCLUDE=%INCLUDE%;%OPENSSL_DIR%\include
set LIB=%LIB%;%OPENSSL_DIR%\lib
msbuild pjproject-vs14.sln /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd
- name: build test tools cmp_wav
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
cd tests/pjsua/tools
set INCLUDE=%INCLUDE%;%OPENSSL_DIR%\include
set LIB=%LIB%;%OPENSSL_DIR%\lib
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
msbuild cmp_wav.vcxproj /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd
- name: set up Python 3.10 for pjsua test
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: unit tests
run: |
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd tests/pjsua; python runall.py
cd ../../pjsip/bin; ./pjsip-test-i386-Win32-vc14-Release.exe
shell: powershell
build-windows-gnu-tls:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: get gnutls
run: Invoke-WebRequest -Uri "https://github.com/pjsip/third_party_libs/raw/main/gnutls-3.5.17-win.zip" -Outfile ".\gnutls.zip"
shell: powershell
- name: expand gnutls
run: |
Expand-Archive -LiteralPath .\gnutls.zip -DestinationPath .; pwd
cd gnutls_build
Add-Content ..\gnutls_dir.txt $pwd.Path
shell: powershell
- name: check gnutls folder
run: |
set /P GNUTLS_DIR=<gnutls_dir.txt
dir "%GNUTLS_DIR%\include"
dir "%GNUTLS_DIR%\lib\"
shell: cmd
- name: config site
run: |
echo "" > pjlib\include\pj\config_site.h
Add-Content config_site.h "#define PJ_HAS_SSL_SOCK 1"
Add-Content config_site.h "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_GNUTLS"
shell: powershell
- name: check VsDevCmd.bat
run: dir "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
shell: cmd
- name: MSBuild
working-directory: .
run: |
set /P GNUTLS_DIR=<gnutls_dir.txt
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
set INCLUDE=%INCLUDE%;%GNUTLS_DIR%\include
set LIB=%LIB%;%GNUTLS_DIR%\lib
msbuild pjproject-vs14.sln /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd
windows-with-video-libvpx-schannel-unit-test-1:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: get vpx
run: Invoke-WebRequest -Uri "https://github.com/pjsip/third_party_libs/raw/main/vpx-1.12-win.zip" -Outfile "vpx.zip"
shell: powershell
- name: expand libvpx
run: |
Expand-Archive -LiteralPath .\vpx.zip -DestinationPath .; pwd
cd vpx_build
Add-Content ..\vpx_dir.txt $pwd.Path
shell: powershell
- name: check vpx folder
run: |
set /P VPX_DIR=<vpx_dir.txt
dir "%VPX_DIR%\include"
dir "%VPX_DIR%\lib"
shell: cmd
- name: get sdl
run: Invoke-WebRequest -Uri "https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-devel-2.26.2-VC.zip" -Outfile ".\sdl.zip"
shell: powershell
- name: expand sdl
run: |
Expand-Archive -LiteralPath .\sdl.zip -DestinationPath .\sdl_build\; pwd
cd sdl_build\SDL2-2.26.2
Add-Content ..\..\sdl_dir.txt $pwd.Path
shell: powershell
- name: check sdl folder
run: |
set /P SDL_DIR=<sdl_dir.txt
dir "%SDL_DIR%\include"
dir "%SDL_DIR%\lib\x86"
shell: cmd
- name: config site
run: |
cd pjlib/include/pj; cp config_site_test.h config_site.h
Add-Content config_site.h "#define PJ_HAS_SSL_SOCK 1"
Add-Content config_site.h "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_SCHANNEL"
Add-Content config_site.h "#undef PJMEDIA_SRTP_HAS_DTLS"
Add-Content config_site.h "#define PJMEDIA_HAS_VIDEO 1"
Add-Content config_site.h "#define PJMEDIA_VIDEO_DEV_HAS_DSHOW 1"
Add-Content config_site.h "#define PJMEDIA_HAS_LIBYUV 1"
Add-Content config_site.h "#define PJMEDIA_VIDEO_DEV_HAS_SDL 1"
Add-Content config_site.h "#define PJMEDIA_HAS_VPX_CODEC 1"
shell: powershell
- name: check VsDevCmd.bat
run: dir "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
shell: cmd
- name: MSBuild
working-directory: .
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
set /P VPX_DIR=<vpx_dir.txt
set /P SDL_DIR=<sdl_dir.txt
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
set INCLUDE=%INCLUDE%;%OPENSSL_DIR%\include;%VPX_DIR%\include;%SDL_DIR%\include
set LIB=%LIB%;%OPENSSL_DIR%\lib;%VPX_DIR%\lib;%SDL_DIR%\lib\x86
msbuild pjproject-vs14.sln /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd
- name: build test tools cmp_wav
run: |
set /P OPENSSL_DIR=<openssl_dir.txt
set /P VPX_DIR=<vpx_dir.txt
set /P SDL_DIR=<sdl_dir.txt
cd tests/pjsua/tools
set INCLUDE=%INCLUDE%;%OPENSSL_DIR%\include;%VPX_DIR%\include;%SDL_DIR%\include
set LIB=%LIB%;%VPX_DIR%\lib;%SDL_DIR%\lib\x86
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
msbuild cmp_wav.vcxproj /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd
- name: set up Python 3.10 for pjsua test
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: unit tests
run: |
$env:SDL_DIR = Get-Content .\sdl_dir.txt
$env:PATH+=";$env:SDL_DIR\lib\x86;"
cd tests/pjsua; python runall.py
cd ../../pjlib/bin; ./pjlib-test-i386-Win32-vc14-Release.exe --ci-mode
cd ../../pjlib-util/bin; ./pjlib-util-test-i386-Win32-vc14-Release.exe
cd ../../pjmedia/bin/; ./pjmedia-test-i386-Win32-vc14-Release.exe
shell: powershell
build-windows-video-ffmpeg:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: get ffmpeg
run: Invoke-WebRequest -Uri "https://github.com/pjsip/third_party_libs/raw/main/ffmpeg-5.1.2-win.zip" -Outfile "ffmpeg.zip"
shell: powershell
- name: expand ffmpeg
run: |
Expand-Archive -LiteralPath .\ffmpeg.zip -DestinationPath .; pwd
cd ffmpeg_build
Add-Content ..\ffmpeg_dir.txt $pwd.Path
shell: powershell
- name: check ffmpeg folder
run: |
set /P FFMPEG_DIR=<ffmpeg_dir.txt
dir "%FFMPEG_DIR%\include"
dir "%FFMPEG_DIR%\lib"
shell: cmd
- name: get sdl
run: Invoke-WebRequest -Uri "https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-devel-2.26.2-VC.zip" -Outfile ".\sdl.zip"
shell: powershell
- name: expand sdl
run: |
Expand-Archive -LiteralPath .\sdl.zip -DestinationPath .\sdl_build\; pwd
cd sdl_build\SDL2-2.26.2
Add-Content ..\..\sdl_dir.txt $pwd.Path
shell: powershell
- name: check sdl folder
run: |
set /P SDL_DIR=<sdl_dir.txt
dir "%SDL_DIR%\include\SDL"
dir "%SDL_DIR%\lib\x86"
shell: cmd
- name: config site
run: |
echo "" > pjlib\include\pj\config_site.h
Add-Content config_site.h "#define PJMEDIA_HAS_VIDEO 1"
Add-Content config_site.h "#define PJMEDIA_HAS_FFMPEG 1"
Add-Content config_site.h "#define PJMEDIA_HAS_FFMPEG_VID_CODEC 1"
Add-Content config_site.h "#define PJMEDIA_VIDEO_DEV_HAS_FFMPEG 1"
Add-Content config_site.h "#define PJMEDIA_VIDEO_DEV_HAS_SDL 1"
shell: powershell
- name: check VsDevCmd.bat
run: dir "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
shell: cmd
- name: MSBuild
working-directory: .
run: |
set /P FFMPEG_DIR=<ffmpeg_dir.txt
set /P LIBSDL_DIR=<sdl_dir.txt
call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
set INCLUDE=%INCLUDE%;%LIBFFMPEG_DIR%\include;%SDL_DIR%\include
set LIB=%LIB%;%FFMPEG_DIR%\lib;%SDL_DIR%\lib\x86
msbuild pjproject-vs14.sln /p:PlatformToolset=v143 /p:Configuration=Release /p:Platform=win32 /p:UseEnv=true
shell: cmd

32
.github/workflows/cifuzz.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: CIFuzz
on: [pull_request]
jobs:
Fuzzing:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined, memory]
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'pjsip'
dry-run: false
language: c
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'pjsip'
dry-run: false
language: c
fuzz-seconds: 300
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure() && steps.build.outcome == 'success'
with:
name: ${{ matrix.sanitizer }}-artifacts
path: ./out/artifacts

66
.github/workflows/codeql-analysis.yml vendored Normal file
View File

@ -0,0 +1,66 @@
name: "CodeQL"
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 22 * * 2'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['cpp', 'python']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v1
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
- run: |
./configure --disable-libyuv --disable-libwebrtc --disable-speex-codec --disable-speex-aec
make
mv tests/pjsua/inc_cfg.py tests/pjsua/inc_cfg.txt
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

View File

@ -0,0 +1,19 @@
# Scheduled scan, only runs on master (see
# https://stackoverflow.com/a/58800550)
name: "Coverity Scan (Daily)"
on:
schedule:
- cron: '0 12 * * *' # Daily at 12:00 UTC
jobs:
ubuntu-full-bundle:
if: github.repository == 'pjsip/pjproject'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run.sh
run: tests/coverity-scan/run.sh
env:
COV_TOKEN: ${{ secrets.PJSIP_COVERITY_SCAN_TOKEN }}

View File

@ -0,0 +1,16 @@
# This allows running coverity scan at any time and on any branch. Invoke this
# action manually from https://github.com/pjsip/pjproject/actions
name: "Coverity Scan (Manual)"
on: [workflow_dispatch]
jobs:
ubuntu-full-bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run.sh
run: tests/coverity-scan/run.sh
env:
COV_TOKEN: ${{ secrets.PJSIP_COVERITY_SCAN_TOKEN }}

88
.gitignore vendored Normal file
View File

@ -0,0 +1,88 @@
pjlib/include/pj/config_site.h
lib/
bin/
output/
tmp/
# VS stuff
*.ncb
*.suo
*.cache
*.resw
.vs/
.vscode/
**/build/**/*.vcproj.*.user
**/build/**/*.vcxproj.*.user
**/build/**/*.vcproj.user
**/build/**/*.vcxproj.user
**/Win32/Debug
**/x64/Debug
**/x86/Debug
UpgradeLog*.htm
# VS 2015 stuff
*.pdb
*.db
*.opendb
samples.log
# GNU stuff
config.log
config.status
build.mak
user.mak
cc-auto.mak
os-auto.mak
m_auto.h
os_auto.h
config_auto.h
sip_autoconf.h
*.depend
# Apple stuff
*.DS_Store
autom4te.cache
xcuserdata
pjsip-apps/src/pjsua/ios*/lib*.a
pjsip-apps/src/pjsua/ios/ipjsua.xcodeproj/project.xcworkspace/
pjsip-apps/src/pjsua/ios/ipjsua.xcworkspace/xcshareddata
pjsip-apps/src/pjsua/ios-swift/Libraries/
pjsip-apps/src/pjsua2/ios-swift-pjsua2/Libraries/
# SWIG Java/Android stuff
pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/*.java
pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/PjCamera*.java
pjsip-apps/src/swig/java/android/app/src/main/jniLibs/
# SWIG CSharp/Xamarin stuff
pjsip-apps/src/swig/csharp/pjsua2xamarin/
# SWIG Python stuff
pjsip-apps/src/swig/python/build/
pjsip-apps/src/swig/python/pjsua2.py
pjsip-apps/src/swig/python/pjsua2_wrap.*
# unit tests files
tests/pjsua/*.pyc
tests/pjsua/scripts-*/*.pyc
tests/pjsua/*.log
tests/pjsua/wavs/tmp*.wav
tests/pjsua/tools/cmp_wav
tests/pjsua/tools/cmp_wav.dSYM
tests/pjsua/logs
tests/fuzz/*
!tests/fuzz/**/
!tests/fuzz/*.*
tests/fuzz/*.o
# benchmark output
*bench*.htm
# Doxygen stuff
*/docs/html/
*/docs/xml/
*/docs/latex/
*/docs/*.tag
# Coverity scan stuff
cov-int/
getversion.mak
configure.out

523
COPYING
View File

@ -1,352 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
========
The licenses for most software are designed to take away your freedom
to share and change it. By contrast, the GNU General Public License is
intended to guarantee your freedom to share and change free
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not price.
Our General Public Licenses are designed to make sure that you have
the freedom to distribute copies of free software (and charge for this
service if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs; and that you know you can do these things.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid anyone
to deny you these rights or to ask you to surrender the rights. These
restrictions translate to certain responsibilities for you if you
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis
or for a fee, you must give the recipients all the rights that you
have. You must make sure that they, too, receive or can get the source
code. And you must show them these terms so they know their rights.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software patents.
We wish to avoid the danger that redistributors of a free program will
individually obtain patent licenses, in effect making the program
proprietary. To prevent this, we have made it clear that any patent
must be licensed for everyone's free use or not licensed at all.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a
notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program",
below, refers to any such program or work, and a "work based on
the Program" means either the Program or any derivative work under
copyright law: that is to say, a work containing the Program or a
portion of it, either verbatim or with modifications and/or
translated into another language. (Hereinafter, translation is
included without limitation in the term "modification".) Each
licensee is addressed as "you".
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Activities other than copying, distribution and modification are
not covered by this License; they are outside its scope. The act
of running the Program is not restricted, and the output from the
Program is covered only if its contents constitute a work based on
the Program (independent of having been made by running the
Program). Whether that is true depends on what the Program does.
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any
warranty; and give any other recipients of the Program a copy of
this License along with the Program.
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange
for a fee.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a. You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b. You must cause any work that you distribute or publish, that
in whole or in part contains or is derived from the Program
or any part thereof, to be licensed as a whole at no charge
to all third parties under the terms of this License.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c. If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display
an announcement including an appropriate copyright notice and
a notice that there is no warranty (or else, saying that you
provide a warranty) and that users may redistribute the
program under these conditions, and telling the user how to
view a copy of this License. (Exception: if the Program
itself is interactive but does not normally print such an
announcement, your work based on the Program is not required
to print an announcement.)
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the
Program, and can be reasonably considered independent and separate
works in themselves, then this License, and its terms, do not
apply to those sections when you distribute them as separate
works. But when you distribute the same sections as part of a
whole which is a work based on the Program, the distribution of
the whole must be on the terms of this License, whose permissions
for other licensees extend to the entire whole, and thus to each
and every part regardless of who wrote it.
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or
contest your rights to work written entirely by you; rather, the
intent is to exercise the right to control the distribution of
derivative or collective works based on the Program.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the
Program with the Program (or with a work based on the Program) on
a volume of a storage or distribution medium does not bring the
other work under the scope of this License.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms
of Sections 1 and 2 above provided that you also do one of the
following:
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a. Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of
Sections 1 and 2 above on a medium customarily used for
software interchange; or,
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b. Accompany it with a written offer, valid for at least three
years, to give any third-party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c. Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with
such an offer, in accord with Subsection b above.)
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete
source code means all the source code for all modules it contains,
plus any associated interface definition files, plus the scripts
used to control compilation and installation of the executable.
However, as a special exception, the source code distributed need
not include anything that is normally distributed (in either
source or binary form) with the major components (compiler,
kernel, and so on) of the operating system on which the executable
runs, unless that component itself accompanies the executable.
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this
License. However, parties who have received copies, or rights,
from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify
or distribute the Program or its derivative works. These actions
are prohibited by law if you do not accept this License.
Therefore, by modifying or distributing the Program (or any work
based on the Program), you indicate your acceptance of this
License to do so, and all its terms and conditions for copying,
distributing or modifying the Program or works based on it.
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program
subject to these terms and conditions. You may not impose any
further restrictions on the recipients' exercise of the rights
granted herein. You are not responsible for enforcing compliance
by third parties to this License.
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent
issues), conditions are imposed on you (whether by court order,
agreement or otherwise) that contradict the conditions of this
License, they do not excuse you from the conditions of this
License. If you cannot distribute so as to satisfy simultaneously
your obligations under this License and any other pertinent
obligations, then as a consequence you may not distribute the
Program at all. For example, if a patent license would not permit
royalty-free redistribution of the Program by all those who
receive copies directly or indirectly through you, then the only
way you could satisfy both it and this License would be to refrain
entirely from distribution of the Program.
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable
under any particular circumstance, the balance of the section is
intended to apply and the section as a whole is intended to apply
in other circumstances.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of
any such claims; this section has the sole purpose of protecting
the integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is
willing to distribute software through any other system and a
licensee cannot impose that choice.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed
to be a consequence of the rest of this License.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces,
the original copyright holder who places the Program under this
License may add an explicit geographical distribution limitation
excluding those countries, so that distribution is permitted only
in or among countries not thus excluded. In such case, this
License incorporates the limitation as if written in the body of
this License.
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new
versions of the General Public License from time to time. Such
new versions will be similar in spirit to the present version, but
may differ in detail to address new problems or concerns.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies a version number of this License which applies
to it and "any later version", you have the option of following
the terms and conditions either of that version or of any later
version published by the Free Software Foundation. If the Program
does not specify a version number of this License, you may choose
any version ever published by the Free Software Foundation.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the
author to ask for permission. For software which is copyrighted
by the Free Software Foundation, write to the Free Software
Foundation; we sometimes make exceptions for this. Our decision
will be guided by the two goals of preserving the free status of
all derivatives of our free software and of promoting the sharing
and reuse of software generally.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
SERVICING, REPAIR OR CORRECTION.
NO WARRANTY
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
=============================================
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
If you develop a new program, and you want it to be of the greatest
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
Copyright (C) YYYY NAME OF AUTHOR
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than `show w' and `show
c'; they could even be mouse-clicks or menu items--whatever suits your
program.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
SIGNATURE OF TY COON, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library,
you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
GNU Library General Public License instead of this License.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

33
FUZZING.MD Normal file
View File

@ -0,0 +1,33 @@
### Export Flags
```
export CC=clang
export CXX=clang++
export LIB_FUZZING_ENGINE=-fsanitize=fuzzer
export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="$CFLAGS"
```
### Compile Guide
Note: While compiling fuzzing suite, Don't use bloat libraries.
```
./configure --disable-ffmpeg --disable-ssl --disable-speex-aec --disable-speex-codec --disable-g7221-codec --disable-gsm-codec --disable-ilbc-codec --disable-resample --disable-libsrtp --disable-libwebrtc --disable-libyuv
make dep
make -j$(nproc)
make fuzz
```
### Run
```
cd tests/fuzz
mkdir cov-json
unzip seed/fuzz-json_seed_corpus.zip
./fuzz-json cov-json/ fuzz-json_seed_corpus/
```

View File

@ -1,48 +0,0 @@
[Last update: 2007/02/18]
-= INTRO=-
This top level projects:
- pjlib: portability and basic framework library
- pjlib-util: lexical scanner, XML, STUN, MD5, DNS, etc.
- pjmedia: media framework and codecs
- pjsip: SIP stacks (core, UA layer, SIMPLE, etc.)
- pjsip-apps: SIP apps (pjsua, pjsip-perf)
-= COMPILING =-
On Windows:
- Visual Studio 6: open pjproject.dsw
- Visual Studio 8/2005: open pjproject-vs8.sln
- Embedded VisualC 4: open open pjsip-apps\build\wince-evc4\wince_demos.vcw
- Build pjsua
With Makefile:
- on top level dir (e.g. ~/pjproject)
- ./configure && make dep && make clean && make
Binaries will be in pjsip-apps/bin.
-= PYTHON MODULE =-
On Windows:
- Visual Studio 6: open pjsip-apps\build\pjsip_apps.dsw
- Build py_pjsua module
With GNU and Python:
- cd pjsip-apps/src/py_pjsua
- python setup.py install
One Python sample application is provided:
pjsip-apps/src/py_pjsua/pjsua_app.py
-= PORTING =-
- Just need to port pjlib.
- PJLIB doc has detailed info how to do this.
- Must pass pjlib-test!

120
Makefile
View File

@ -1,27 +1,72 @@
include build.mak
include build/host-$(HOST_NAME).mak
-include user.mak
include version.mak
DIRS = pjlib pjlib-util pjnath third_party pjmedia pjsip pjsip-apps
LIB_DIRS = pjlib/build pjlib-util/build pjnath/build third_party/build pjmedia/build pjsip/build
DIRS = $(LIB_DIRS) pjsip-apps/build $(EXTRA_DIRS)
ifdef MINSIZE
MAKE_FLAGS := MINSIZE=1
endif
all clean dep depend distclean doc print realclean:
all clean dep depend print:
for dir in $(DIRS); do \
if $(MAKE) $(MAKE_FLAGS) -C $$dir/build $@; then \
if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
true; \
else \
exit 1; \
fi; \
done
distclean realclean:
for dir in $(DIRS); do \
if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
true; \
else \
exit 1; \
fi; \
done
$(HOST_RM) config.log
$(HOST_RM) config.status
lib:
for dir in $(LIB_DIRS); do \
if $(MAKE) $(MAKE_FLAGS) -C $$dir lib; then \
true; \
else \
exit 1; \
fi; \
done; \
.PHONY: lib doc clean-doc
doc:
@if test \( ! "$(WWWDIR)" == "" \) -a \( ! -d $(WWWDIR)/pjlib/docs/html \) ; then \
echo 'Directory "$(WWWDIR)" does not look like a valid pjsip web directory'; \
exit 1; \
fi
for dir in $(DIRS); do \
if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
true; \
else \
exit 1; \
fi; \
done
clean-doc:
for dir in pjlib pjlib-util pjnath pjmedia pjsip; do \
rm -rf $${dir}/docs/$${PJ_VERSION}; \
done
LIBS = pjlib/lib/libpj-$(TARGET_NAME).a \
pjlib-util/lib/libpjlib-util-$(TARGET_NAME).a \
pjnath/lib/libpjnath-$(TARGET_NAME).a \
pjmedia/lib/libpjmedia-$(TARGET_NAME).a \
pjmedia/lib/libpjmedia-audiodev-$(TARGET_NAME).a \
pjmedia/lib/libpjmedia-codec-$(TARGET_NAME).a \
pjsip/lib/libpjsip-$(TARGET_NAME).a \
pjsip/lib/libpjsip-$(TARGET_NAME).a \
pjsip/lib/libpjsip-ua-$(TARGET_NAME).a \
pjsip/lib/libpjsip-simple-$(TARGET_NAME).a \
pjsip/lib/libpjsua-$(TARGET_NAME).a
@ -56,14 +101,63 @@ xhdrid:
cp /tmp/id $$f; \
done
prefix = /usr/local
selftest: pjlib-test pjlib-util-test pjnath-test pjmedia-test pjsip-test pjsua-test
pjlib-test: pjlib/bin/pjlib-test-$(TARGET_NAME)
cd pjlib/build && ../bin/pjlib-test-$(TARGET_NAME)
pjlib-test-ci: pjlib/bin/pjlib-test-$(TARGET_NAME)
cd pjlib/build && ../bin/pjlib-test-$(TARGET_NAME) --ci-mode
pjlib-util-test: pjlib-util/bin/pjlib-util-test-$(TARGET_NAME)
cd pjlib-util/build && ../bin/pjlib-util-test-$(TARGET_NAME)
pjnath-test: pjnath/bin/pjnath-test-$(TARGET_NAME)
cd pjnath/build && ../bin/pjnath-test-$(TARGET_NAME)
pjmedia-test: pjmedia/bin/pjmedia-test-$(TARGET_NAME)
cd pjmedia/build && ../bin/pjmedia-test-$(TARGET_NAME)
pjsip-test: pjsip/bin/pjsip-test-$(TARGET_NAME)
cd pjsip/build && ../bin/pjsip-test-$(TARGET_NAME)
pjsua-test: cmp_wav
cd tests/pjsua && python runall.py -t 2
cmp_wav:
$(MAKE) -C tests/pjsua/tools
fuzz:
$(MAKE) -C tests/fuzz
install:
mkdir -p $(DESTDIR)$(prefix)/lib
cp -L $$(find . -name '*.a') $(DESTDIR)$(prefix)/lib
mkdir -p $(DESTDIR)$(prefix)/include
cp -RL $$(find . -name include) $(DESTDIR)$(prefix)
cd $(DESTDIR)$(prefix)/lib && for i in $$(find . -name 'libpj*a'); do\
ln -s $$i $$(echo $$i | sed -e "s/-$(TARGET_NAME)//");\
mkdir -p $(DESTDIR)$(libdir)/
if [ "$(PJ_EXCLUDE_PJSUA2)x" = "x" ] ; then \
cp -af $(APP_LIBXX_FILES) $(DESTDIR)$(libdir)/; \
else \
cp -af $(APP_LIB_FILES) $(DESTDIR)$(libdir)/; \
fi
mkdir -p $(DESTDIR)$(includedir)/
for d in pjlib pjlib-util pjnath pjmedia pjsip; do \
cp -RLf $$d/include/* $(DESTDIR)$(includedir)/; \
done
mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
sed -e "s!@PREFIX@!$(DESTDIR)$(prefix)!" libpj.pc.in > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpj.pc
mkdir -p $(DESTDIR)$(libdir)/pkgconfig
sed -e "s!@PREFIX@!$(prefix)!" libpjproject.pc.in | \
sed -e "s!@INCLUDEDIR@!$(includedir)!" | \
sed -e "s!@LIBDIR@!$(libdir)!" | \
sed -e "s/@PJ_VERSION@/$(PJ_VERSION)/" | \
sed -e "s!@PJ_INSTALL_LDFLAGS@!$(PJ_INSTALL_LDFLAGS)!" | \
sed -e "s!@PJ_INSTALL_LDFLAGS_PRIVATE@!$(PJ_INSTALL_LDFLAGS_PRIVATE)!" | \
sed -e "s!@PJ_INSTALL_CFLAGS@!$(PJ_INSTALL_CFLAGS)!" > $(DESTDIR)$(libdir)/pkgconfig/libpjproject.pc
uninstall:
$(RM) $(DESTDIR)$(libdir)/pkgconfig/libpjproject.pc
rmdir $(DESTDIR)$(libdir)/pkgconfig 2> /dev/null || true
for d in pjlib pjlib-util pjnath pjmedia pjsip; do \
for f in $$d/include/*; do \
$(RM) -r "$(DESTDIR)$(includedir)/`basename $$f`"; \
done; \
done
rmdir $(DESTDIR)$(includedir) 2> /dev/null || true
$(RM) $(addprefix $(DESTDIR)$(libdir)/,$(notdir $(APP_LIBXX_FILES)))
rmdir $(DESTDIR)$(libdir) 2> /dev/null || true

View File

@ -1,87 +0,0 @@
Build Instructions for PJLIB/PJMEDIA/PJSIP RTEMS Port
The RTEMS port uses the POSIX abstraction layer at the moment, and has been
tested with RTEMS 4.6 on i386 target.
Building RTEMS
---------------
I use RTEMS 4.6 on a cygwin host with i386/pc386 as target, but I think it
should work with different RTEMS versions/hosts/targets.
RTEMS was built with the following commands:
$ /opt/src/rtems-4.6.6/configure --enable-cxx --enable-posix --enable-networking --enable-rdbg --enable-tests --enable-rtemsbsp=pc386 --target=i386-rtems
$ make
$ make install
Supported Targets
-----------------
At the moment, pjlib supports i386 and mpc860 CPU target. For other targets,
you would need to create/tweak the appropriate "m-xxx.mak" in "build" directory
and the corresponding "m_xxx.h" header file in "pj/compat" directory.
Please refer to pjlib porting guide about how to port PJLIB to new CPU target.
Building PJLIB/PJMEDIA/PJSIP
----------------------------
Use the following steps to build the libraries:
1. Set RTEMS_LIBRARY_PATH environment variable to point to your BSP directory
(which is <RTEMS INSTALLATION POINT>/<BOARD SUPPORT PACKAGE>).
For example (with sh):
$ export RTEMS_LIBRARY_PATH=/opt/rtems-4.6/i386-rtems/pc386
2. Unfortunately pjproject's configure script is unable to create "build.mak"
for cross compilation (but this may change in the future), so we need to
create "build.mak" manually.
The file "README-configure" has some info about the variables in "build.mak".
For example, the "build.mak" for i386 target:
export MACHINE_NAME := i386
export OS_NAME := rtems
export HOST_NAME := mingw
export CC_NAME := gcc
export TARGET_NAME := i386-rtems
export CROSS_COMPILE := i386-rtems-
3. Put additional CFLAGS or LDFLAGS that are specific to your target in
"user.mak".
For example, my "user.mak" looks like this:
export CFLAGS +=
export LDFLAGS += -Wl,-Ttext,0x00100000 -Wl,--defsym -Wl,HeapSize=0x400000
4. Build the libraries:
$ make dep && make distclean && make
5. That should be it. The libraries should be in "lib" directory and
applications in "bin" directory.
Acknowledgements
----------------
Many thanks for Phil Torre <ptorre at zetron dot com>, who did most of the
initial porting and testing with pjlib etc. All credits go to him.

67
README.md Normal file
View File

@ -0,0 +1,67 @@
[![CI Linux](https://github.com/pjsip/pjproject/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/pjsip/pjproject/actions/workflows/ci-linux.yml)
[![CI Mac](https://github.com/pjsip/pjproject/actions/workflows/ci-mac.yml/badge.svg)](https://github.com/pjsip/pjproject/actions/workflows/ci-mac.yml)
[![CI Windows](https://github.com/pjsip/pjproject/actions/workflows/ci-win.yml/badge.svg)](https://github.com/pjsip/pjproject/actions/workflows/ci-win.yml)
<BR>
[![OSS-Fuzz](https://oss-fuzz-build-logs.storage.googleapis.com/badges/pjsip.png)](https://oss-fuzz-build-logs.storage.googleapis.com/index.html#pjsip)
[![Coverity-Scan](https://scan.coverity.com/projects/905/badge.svg)](https://scan.coverity.com/projects/pjsip)
[![CodeQL](https://github.com/pjsip/pjproject/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/pjsip/pjproject/actions/workflows/codeql-analysis.yml)
[![docs.pjsip.org](https://readthedocs.org/projects/pjsip/badge/?version=latest)](https://docs.pjsip.org/en/latest/)
# PJSIP
PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, and Python languages. It implements standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal functionality into high level API that is portable and suitable for almost any type of systems ranging from desktops, embedded systems, to mobile handsets.
## Getting PJSIP
- Main repository: https://github.com/pjsip/pjproject
- Releases: https://github.com/pjsip/pjproject/releases
## Documentation
Main documentation site: https://docs.pjsip.org
Table of contents:
- Overview
- [Overview](https://docs.pjsip.org/en/latest/overview/intro.html)
- [Features (Datasheet)](https://docs.pjsip.org/en/latest/overview/features.html)
- [License](https://docs.pjsip.org/en/latest/overview/license.html)
- **Getting started**
- [Getting PJSIP](https://docs.pjsip.org/en/latest/get-started/getting.html)
- [General Guidelines](https://docs.pjsip.org/en/latest/get-started/general_guidelines.html)
- [Android](https://docs.pjsip.org/en/latest/get-started/android/index.html)
- [iPhone](https://docs.pjsip.org/en/latest/get-started/ios/index.html)
- [Mac/Linux/Unix](https://docs.pjsip.org/en/latest/get-started/posix/index.html)
- [Windows](https://docs.pjsip.org/en/latest/get-started/windows/index.html)
- [Windows Phone](https://docs.pjsip.org/en/latest/get-started/windows-phone/index.html)
- PJSUA2 - High level API guide
- [Introduction](https://docs.pjsip.org/en/latest/pjsua2/intro.html)
- [Building PJSUA2](https://docs.pjsip.org/en/latest/pjsua2/building.html)
- [General concepts](https://docs.pjsip.org/en/latest/pjsua2/general_concept.html)
- [Hello world!](https://docs.pjsip.org/en/latest/pjsua2/building.html)
- [Using PJSUA2](https://docs.pjsip.org/en/latest/pjsua2/using/index.html)
- [Sample applications](https://docs.pjsip.org/en/latest/pjsua2/samples.html)
- Specific guides
- [Audio](https://docs.pjsip.org/en/latest/specific-guides/index.html#audio)
- [Audio Troubleshooting](https://docs.pjsip.org/en/latest/specific-guides/index.html#audio-troubleshooting)
- [Build and integration](https://docs.pjsip.org/en/latest/specific-guides/index.html#build-integration)
- [Development and programming](https://docs.pjsip.org/en/latest/specific-guides/index.html#development-programming)
- [Media](https://docs.pjsip.org/en/latest/specific-guides/index.html#media)
- [Network and NAT](https://docs.pjsip.org/en/latest/specific-guides/index.html#network-nat)
- [Performance and footprint](https://docs.pjsip.org/en/latest/specific-guides/index.html#performance-footprint)
- [Security](https://docs.pjsip.org/en/latest/specific-guides/index.html#security)
- [SIP](https://docs.pjsip.org/en/latest/specific-guides/index.html#sip)
- [Video](https://docs.pjsip.org/en/latest/specific-guides/index.html#video)
- [Other](https://docs.pjsip.org/en/latest/specific-guides/index.html#other)
- API reference
- [PJSUA2](https://docs.pjsip.org/en/latest/api/pjsua2/index.html) - high level API (Java/C#/Python/C++/swig)
- [PJSUA-LIB](https://docs.pjsip.org/en/latest/api/pjsua-lib/index.html) - high level API (C)
- [PJSIP](https://docs.pjsip.org/en/latest/api/pjsip/index.html) - SIP stack
- [PJMEDIA](https://docs.pjsip.org/en/latest/api/pjmedia/index.html) - media framework
- [PJNATH](https://docs.pjsip.org/en/latest/api/pjnath/index.html) - NAT traversal helper
- [PJLIB-UTIL](https://docs.pjsip.org/en/latest/api/pjlib-util/index.html) - utilities
- [PJLIB](https://docs.pjsip.org/en/latest/api/pjlib/index.html) - portable library

View File

@ -1,948 +0,0 @@
Getting Started: Building and Using PJSIP and PJMEDIA
[Last Update: $Date: 2007-02-02 20:42:44 +0000 (Fri, 02 Feb 2007) $]
Print Friendly Page
_________________________________________________________________
This article describes how to download, customize, build, and use the open
source PJSIP and PJMEDIA SIP and media stack. The online (and HTML) version
of this file can be downloaded from http://www.pjsip.org/using.htm
Quick Info
_________________________________________________________________
Building with GNU tools (Linux, *BSD, MacOS X, mingw, etc.)
Generally these should be all that are needed to build the libraries,
applications, and samples:
$ ./configure
$ make dep && make clean && make
Building Win32 Target with Microsoft Visual Studio
Generally we can just do these steps:
1. Visual Studio 6: open pjproject.dsw workspace,
2. Visual Studio 2005: open pjproject-vs8.sln solution,
3. Create an empty pjlib/include/pj/config_site.h, and
4. build the pjsua application.
Building for Windows Mobile
Generally these are all that are needed:
1. Open pjsip-apps/build/wince-evc4/wince_demos.vcw EVC4 workspace,
2. Create an empty pjlib/include/pj/config_site.h, and
3. build the pjsua_wince application.
Invoking Older Build System (e.g. for RTEMS)
Generally these should be all that are needed to build the libraries,
applications, and samples:
$ ./configure-legacy
$ make dep && make clean && make
Locating Output Binaries/Libraries
Libraries will be put in lib directory, and binaries will be put in
bin directory, under each projects.
Running the Applications
After successful build, you can try running pjsua application on
pjsip-apps/bin directory. PJSUA manual can be found in
http://www.pjsip.org/pjsua.htm page.
Table of Contents:
_________________________________________________________________
1. Getting the Source Distribution
1.1 Getting the Release tarball
1.2 Getting from Subversion trunk
1.3 Source Directories Layout
2. Build Preparation
2.1 config_site.h file
2.2 Disk Space Requirements
3. Building Linux, *nix, *BSD, and MacOS X Targets with GNU Build
Systems
3.1 Supported Targets
3.2 Requirements
3.3 Running configure
3.4 Running make
3.5 Cross Compilation
3.6 Build Customizations
4. Building for Windows Targets with Microsoft Visual Studio
4.1 Requirements
4.2 Building the Projects
4.3 Debugging the Sample Application
5. Building for Windows Mobile Targets (Windows CE/WinCE/PDA/SmartPhone)
5.1 Requirements
5.2 Building the Projects
6. Older PJLIB Build System for Non-Autoconf Targets (e.g. RTEMS)
6.1 Supported Targets
6.2 Invoking the Build System
7. Running the Applications
7.1 pjsua
7.2 Sample Applications
7.3 pjlib-test
7.4 pjsip-test
8. Using PJPROJECT with Applications
Appendix I: Common Problems/Frequently Asked Question (FAQ)
I.1 fatal error C1083: Cannot open include file: 'pj/config_site.h':
No such file or directory
1. Getting the Source Code Distribution
_________________________________________________________________
All libraries (PJLIB, PJLIB-UTIL, PJSIP, PJMEDIA, and PJMEDIA-CODEC) are
currently distributed under a single source tree, collectively named as
PJPROJECT or just PJ libraries. These libraries can be obtained by either
downloading the release tarball or getting them from the Subversion trunk.
1.1 Getting the Release tarball
_________________________________________________________________
Getting the released tarball is a convenient way to obtain stable version of
PJPROJECT. The tarball may not contain the latest features or bug-fixes, but
normally it is considered more stable as each will be tested more rigorously
before released.
The latest released tarball can be downloaded from the
http://www.pjsip.org/download.htm.
1.2 Getting from Subversion trunk
_________________________________________________________________
PJPROJECT Subversion repository will always contain the latest/most
up-to-date version of the sources. Normally the Subversion repository is
always kept in a "good" state. However, there's always a chance that things
break and the tree doesn't build correctly (particularly for the
"not-so-popular" targets), so please consult the mailing list should there
be any problems.
Using Subversion also has benefits of keeping the local copy of the source
up to date with the main PJ source tree and to easily track the changes made
to the local copy, if any.
What is Subversion
Subversion (SVN) is Open Source version control system similar to CVS.
Subversion homepage is in http://subversion.tigris.org/
Getting Subversion Client
A Subversion (SVN) client is needed to download the PJ source files from
pjsip.org SVN tree. SVN client binaries can be downloaded from
http://subversion.tigris.org/, and the program should be available for
Windows, Linux, MacOS X, and many more platforms.
Getting the Source for The First Time
Once Subversion client is installed, we can use these commands to initially
retrieve the latest sources from the Subversion trunk:
$ svn co http://svn.pjproject.net/repos/pjproject/trunk pjproject
$ cd pjproject
Keeping The Local Copy Up-to-Date
Once sources have been downloaded, we can keep the local copy up to date by
periodically synchronizing the local source with the latest revision from
the PJ's Subversion trunk. The mailing list provides best source of
information about the availability of new updates in the trunk.
To update the local copy with the latest changes in the main PJ's
repository:
$ cd pjproject
$ svn update
Tracking Local and Remote Changes
To see what files have been changed locally:
$ cd pjproject
$ svn status
The above command only compares local file against the original local copy,
so it doesn't require Internet connection while performing the check.
To see both what files have been changed locally and what files have been
updated in the PJ's Subversion repository:
$ cd pjproject
$ svn status -u
Note that this command requires active Internet connection to query the
status of PJPROJECT's source repository.
1.3 Source Directories Layout
_________________________________________________________________
Top-Level Directory Layout
The top-level directories (denoted as $TOP here) in the source distribution
contains the following sub-directories:
$TOP/build
Contains makefiles that are common for all projects.
$TOP/pjlib
Contains header and source files of PJLIB. PJLIB is the base
portability and framework library which is used by all other
libraries
$TOP/pjlib-util
Contains PJLIB-UTIL header and source files. PJLIB-UTIL is an
auxiliary library that contains utility functions such as scanner,
XML, STUN, MD5 algorithm, getopt() implementation, etc.
$TOP/pjmedia
Contains PJMEDIA and PJMEDIA-CODEC header and source files. The
sources of various codecs (such as GSM, Speex, and iLBC) can be found
under this directory.
$TOP/pjsip
Contains PJSIP header and source files.
$TOP/pjsip-apps
Contains source code for PJSUA and various sample applications.
Individual Directory Inside Each Project
Each library directory further contains these sub-directories:
bin
Contains binaries produced by the build process.
build
Contains build scripts/makefiles, project files, project workspace,
etc. to build the project. In particular, it contains one Makefile
file to build the project with GNU build systems, and a *.dsw
workspace file to build the library with Microsoft Visual Studio 6 or
later.
build/output
The build/output directory contains the object files and other files
generated by the build process. To support building multiple targets
with a single source tree, each build target will occupy a different
subdirectory under this directory.
build/wince-evc4
This directory contains the project/workspace files to build Windows
CE/WinCE version of the project using Microsoft Embedded Visual C++
4.
build/wince-evc4/output
This directory contains the library, executable, and object files
generated by Windows Mobile build process.
docs
Contains Doxygen configuration file (doxygen.cfg) to generate online
documentation from the source files. The output documentation will be
put in this directory as well (for example, docs/html directory for
the HTML files).
(to generate Doxygen documentation from the source tree, just run
"doxygen docs/doxygen.cfg" in the individual project directory. The
generated files will reside in docs directory).
include
Contains the header files for the project.
lib
Contains libraries produced by the build process.
src
Contains the source files of the project.
2. Build Preparation
_________________________________________________________________
2.1 Create config_site.h file
_________________________________________________________________
Before source files can be built, the pjlib/include/pj/config_site.h file
must be created (it can just be an empty file).
Note:
When the Makefile based build system is used, this process is taken
care by the Makefiles. But when non-Makefile based build system (such
as Visual Studio) is used, the config_site.h file must be created
manually.
What is config_site.h File
The pjlib/include/pj/config_site.h contains local customizations to the
libraries.
All customizations should be put in this file instead of modifying PJ's
files, because if PJ's files get modified, then those modified files will
not be updated the next time the source is synchronized. Or in other case,
the local modification may be overwritten with the fresh copy from the SVN.
Putting the local customization to the config_site.h solves this problem,
because this file is not included in the version control, so it will never
be overwritten by "svn update" command.
Please find list of configuration macros that can be overriden from these
files:
* PJLIB Configuration (the pjlib/config.h file)
* PJLIB-UTIL Configuration (the pjlib-util/config.h file)
* PJMEDIA Configuration (the pjmedia/config.h file)
* PJSIP Configuration (the pjsip/sip_config.h file)
A sample config_site.h file is also available in
pjlib/include/config_site_sample.h.
Creating config_site.h file
The simplest way is just to create an empty file, to use whetever default
values set by the libraries.
Another way to create the config_site.h file is to write something like the
following:
// Uncomment to get minimum footprint (suitable for 1-2 concurrent calls
only)
//#define PJ_CONFIG_MINIMAL_SIZE
// Uncomment to get maximum performance
//#define PJ_CONFIG_MAXIMUM_SPEED
#include <pj/config_site_sample.h>
2.2 Disk Space Requirements
_________________________________________________________________
The building process needs:
about 50-60 MB of disk space to store the uncompressed source files, and
* about 30-50 MB of additional space for building each target
(Visual Studio Debug and Release are considered as separate targets)
3. Building Linux, *nix, *BSD, and MacOS X Targets with GNU Build Systems
_________________________________________________________________
3.1 Supported Targets
_________________________________________________________________
The new, autoconf based GNU build system can be used to build the
libraries/applications for the following targets:
* Linux/uC-Linux (i386, Opteron, Itanium, MIPS, PowerPC, etc.),
* MacOS X (PowerPC),
* mingw (i386),
* FreeBSD and maybe other BSD's (i386, Opteron, etc.),
* RTEMS with cross compilation (ARM, powerpc),
* etc.
3.2 Requirements
_________________________________________________________________
In order to use PJ's GNU build system, these typical GNU tools are needed:
* GNU make (other make will not work),
* GNU binutils for the target, and
* GNU gcc for the target.
* OpenSSL header files/libraries (optional) if TLS support is wanted.
In addition, the appropriate "SDK" must be installed for the particular
target (this could just be a libc and the appropriate system abstraction
library such as Posix).
The build system is known to work on the following hosts:
* Linux, many types of distributions.
* MacOS X 10.2
* mingw (Win2K, XP)
* FreeBSD (must use gmake instead of make)
Building Win32 applications with Cygwin is currently not supported by the
autoconf script (there is some Windows header conflicts), but one can still
use the old configure script by calling ./configure-legacy. More over,
cross-compilations might also work with Cygwin.
3.3 Running configure
_________________________________________________________________
Using Default Settings
Run "./configure" without any options to let the script detect the
appropriate settings for the host:
$ cd pjproject
$ ./configure
...
Notes:
The default settings build the libraries in "release" mode, with
default CFLAGS set to "-O2 -DNDEBUG". To change the default CFLAGS,
we can use the usual "./configure CFLAGS='-g'" construct.
Features Customization
With the new autoconf based build system, most configuration/customization
can be specified as configure arguments. The list of customizable features
can be viewed by running "./configure --help" command:
$ cd pjproject
$ ./configure --help
...
Optional Features:
--disable-floating-point Disable floating point where possible
--disable-sound Exclude sound (i.e. use null sound)
--disable-small-filter Exclude small filter in resampling
--disable-large-filter Exclude large filter in resampling
--disable-g711-plc Exclude G.711 Annex A PLC
--disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
--disable-g711-codec Exclude G.711 codecs from the build
--disable-l16-codec Exclude Linear/L16 codec family from the build
--disable-gsm-codec Exclude GSM codec in the build
--disable-speex-codec Exclude Speex codecs in the build
--disable-ilbc-codec Exclude iLBC codec in the build
--disable-tls Force excluding TLS support (default is autodetected based on
OpenSSL availability)
...
Configuring Debug Version and Other Customizations
The configure script accepts standard customization, which details can be
obtained by executing ./configure --help.
Below is an example of specifying CFLAGS in configure:
$ ./configure CFLAGS="-O3 -DNDEBUG -msoft-float -fno-builtin"
...
Configuring TLS Support
By default, TLS support is configured based on the availability of OpenSSL
header files and libraries. If OpenSSL is available at the default include
and library path locations, TLS will be enabled by the configure script.
You can explicitly disable TLS support by giving the configure script
--disable-tls option.
3.4 Cross Compilation
_________________________________________________________________
Cross compilation should be supported, using the usual autoconf syntax:
$ ./configure --host=arm-elf-linux
...
Since cross-compilation is not tested as often as the "normal" build, please
watch for the ./configure output for incorrect settings (well ideally this
should be done for normal build too).
Please refer to Porting Guide for further information about porting PJ
software.
3.5 Running make
_________________________________________________________________
Once the configure script completes successfully, start the build process by
invoking these commands:
$ cd pjproject
$ make dep
$ make
Note:
gmake may need to be specified instead of make for some hosts, to
invoke GNU make instead of the native make.
Description of all make targets supported by the Makefile's:
all
The default (or first) target to build the libraries/binaries.
dep, depend
Build dependencies rule from the source files.
clean
Clean the object files for current target, but keep the output
library/binary files intact.
distclean, realclean
Remove all generated files (object, libraries, binaries, and
dependency files) for current target.
Note:
make can be invoked either in the top-level PJ directory or in build
directory under each project to build only the particular project.
3.6 Build Customizations
_________________________________________________________________
Build features can be customized by specifying the options when running
./configure as described in Running Configure above.
In addition, additional CFLAGS and LDFLAGS options can be put in user.mak
file in PJ root directory (this file may need to be created if it doesn't
exist). Below is a sample of user.mak file contents:
export CFLAGS += -msoft-float -fno-builtin
export LDFLAGS +=
4. Building for Windows Targets with Microsoft Visual Studio
_________________________________________________________________
4.1 Requirements
_________________________________________________________________
The Microsoft Visual Studio based project files can be used with one of the
following:
* Microsoft Visual Studio 6,
* Microsoft Visual Studio .NET 2002,
* Microsoft Visual Studio .NET 2003,
* Microsoft Visual C++ 2005 (including Express edition),
In addition, the following SDK's are needed:
* Platform SDK, if you're using Visual Studio 2005 Express (tested with
Platform SDK for Windows Server 2003 SP1),
* DirectX SDK (tested with DirectX version 8 and 9),
* OpenSSL development kit would be needed if TLS support is wanted, or
otherwise this is optional.
For the host, the following are required:
* Windows NT, 2000, XP, 2003, or later ,
* Windows 95/98 should work too, but this has not been tested,
* Sufficient amount of RAM for the build process (at least 256MB).
Enabling TLS Support with OpenSSL
If TLS support is wanted, then OpenSSL SDK must be installed in the
development host.
To install OpenSSL SDK from the Win32 binary distribution:
1. Install OpenSSL SDK to any folder (e.g. C:\OpenSSL)
2. Add OpenSSL DLL location to the system PATH.
3. Add OpenSSL include path to Visual Studio includes search directory.
Make sure that OpenSSL header files can be accessed from the program
with #include <openssl/ssl.h> construct.
4. Add OpenSSL library path to Visual Studio library search directory. Make
sure the following libraries are accessible:
+ For Debug build: libeay32MTd and ssleay32MTd.
+ For Release build: libeay32MT and ssleay32MT.
Then to enable TLS transport support in PJSIP, just add
#define PJSIP_HAS_TLS_TRANSPORT 1
in your pj/config_site.h. When this macro is defined, OpenSSL libraries will
be automatically linked to the application via the #pragma construct in
sip_transport_tls_ossl.c file.
4.2 Building the Projects
_________________________________________________________________
Follow the steps below to build the libraries/application using Visual
Studio:
1. For Visual Studio 6: open pjproject.dsw workspace file.
2. For Visual Studio 8 (VS 2005): open pjproject-vs8.sln solution file.
3. Set pjsua as Active Project.
4. Select Debug or Release build as appropriate.
5. Build the project. This will build pjsua application and all libraries
needed by pjsua.
6. After successful build, the pjsua application will be placed in
pjsip-apps/bin directory, and the libraries in lib directory under each
projects.
To build the samples:
1. (Still using the same workspace)
2. Set samples project as Active Project
3. Select Debug or Release build as appropriate.
4. Build the project. This will build all sample applications and all
libraries needed.
5. After successful build, the sample applications will be placed in
pjsip-apps/bin/samples directory, and the libraries in lib directory
under each projects.
4.3 Debugging the Sample Application
_________________________________________________________________
The sample applications are build using Samples.mak makefile, therefore it
is difficult to setup debugging session in Visual Studio for these
applications. To solve this issue, the pjsip_apps workspace contain one
project called sample_debug which can be used to debug the sample
application.
To setup debugging using sample_debug project:
1. (Still using pjsip_apps workspace)
2. Set sample_debug project as Active Project
3. Edit debug.c file inside this project.
4. Modify the #include line to include the particular sample application to
debug
5. Select Debug build.
6. Build and debug the project.
5. Building for Windows Mobile Targets (Windows CE/WinCE/PDA/SmartPhone)
_________________________________________________________________
PJ supports building SIP and media stacks and applications for Windows
Mobile targets. A very simple WinCE SIP user agent (with media) application
is provided just as proof of concept that the port works.
5.1 Requirements
_________________________________________________________________
One of the following development tools is needed to build SIP and media
components for Windows Mobile:
* Microsoft Embedded Visual C++ 4 with appropriate SDKs, or
* Microsoft Visual Studio 2005 for Windows Mobile with appropriate SDKs.
Note that VS2005 is not directly supported (as I don't have the tools), but
it is reported to work (I assumed that VS2005 for Windows Mobile can import
EVC4 workspace file).
5.2 Building the Projects
_________________________________________________________________
The Windows Mobile port is included in the main source distribution. Please
follow the following steps to build the WinCE libraries and sample
application:
1. Open pjsip-apps/build/wince-evc4/wince_demos.vcw workspace file. If
later version of EVC4 is being used, this may cause the workspace file
to be converted to the appropriate format.
2. Select pjsua_wince project as the Active Project.
3. Select the appropriate SDK (for example Pocket PC 2003 SDK or SmartPhone
2003 SDK)
4. Select the appropriate configuration (for example, Win32 (WCE Emulator
Debug) to debug the program in emulator, or other configurations such as
ARMV4, MIPS, SH3, SH4, or whatever suitable for the device)
5. Select the appropriate device (Emulator or the actual Device).
6. Build the project. This will build the sample WinCE application and all
libraries (SIP, Media, etc.) needed by this application.
Notes
+ If the config_site.h includes config_site_sample.h file, then
there are certain configuration in config_site_sample.h that get
activated for Windows CE targets. Please make sure that these
configurations are suitable for the application.
+ The libraries, binaries and object files produced by the build
process are located under build/wince-evc4/output directory of each
projects.
6. Older PJLIB Build System for Non-Autoconf Targets (e.g. RTEMS)
_________________________________________________________________
The old PJLIB build system can still be used for building PJ libraries, for
example for RTEMS target. Please see the Porting PJLIB page in PJLIB
Reference documentation for information on how to support new target using
this build system.
6.1 Supported Targets
_________________________________________________________________
The older build system supports building PJ libraries for the following
operating systems:
* RTEMS
* Linux
* MacOS X
* Cygwin and Mingw
And it supports the following target architectures:
* i386, x86_64, itanium
* ARM
* mips
* powerpc
* mpc860
* etc.
For other targets, specific files need to be added to the build system,
please see the Porting PJLIB page in PJLIB Reference documentation for
details.
6.2 Invoking the Build System
_________________________________________________________________
To invoke the older build system, run the following:
$ cd pjproject
$ ./configure-legacy
$ make dep && make clean && make
7. Running the Applications
_________________________________________________________________
Upon successful build, the output libraries (PJLIB, PJLIB-UTIL, PJMEDIA,
PJSIP, etc.) are put under ./lib sub-directory under each project directory.
In addition, some applications may also be built, and such applications will
be put in ./bin sub-directory under each project directory.
7.1 pjsua
_________________________________________________________________
pjsua is the reference implementation for both PJSIP and PJMEDIA stack, and
is the main target of the build system. Upon successful build, pjsua
application will be put in pjsip-apps/bin directory.
pjsua manual can be found in pjsua Manual Page.
7.2 Sample Applications
_________________________________________________________________
Sample applications will be built with the Makefile build system. For Visual
Studio, you have to build the samples manually by selecting and building the
Samples project inside pjsip-apps/build/pjsip_apps.dsw project workspace.
Upon successful build, the sample applications are put in
pjsip-apps/bin/samples directory.
The sample applications are described in PJMEDIA Samples Page and
PJSIP Samples Page in the website.
7.3 pjlib-test
_________________________________________________________________
pjlib-test contains comprehensive tests for testing PJLIB functionality.
This application will only be built when the Makefile build system is used;
with Visual Studio, one has to open pjlib.dsw project in pjlib/build
directory to build this application.
If you're porting PJLIB to new target, it is recommended to run this
application to make sure that all functionalities works as expected.
7.4 pjsip-test
_________________________________________________________________
pjsip-test contains codes for testing various SIP functionalities in PJSIP
and also to benchmark static performance metrics such as message parsing per
second.
8. Using PJPROJECT with Applications
_________________________________________________________________
Regardless of the build system being used, the following tasks are normally
needed to be done in order to build application to use PJSIP and PJMEDIA:
1. Put these include directories in the include search path:
+ pjlib/include
+ pjlib-util/include
+ pjmedia/include
+ pjsip/include
2. Put these library directories in the library search path:
+ pjlib/lib
+ pjlib-util/lib
+ pjmedia/lib
+ pjsip/lib
3. Include the relevant PJ header files in the application source file. For
example, using these would include ALL APIs exported by PJ:
#include <pjlib.h>
#include <pjlib-util.h>
#include <pjsip.h>
#include <pjsip_ua.h>
#include <pjsip_simple.h>
#include <pjsua.h>
#include <pjmedia.h>
#include <pjmedia-codec.h>
(Note: the documentation of the relevant libraries should say which
header files should be included to get the declaration of the APIs).
4. Declare the OS macros.
+ For Windows applications built with Visual Studio, we need to
declare PJ_WIN32=1 macro in the project settings (declaring the
macro in the source file may not be sufficient).
+ For Windows Mobile applications build with Visual C++, we need to
declare PJ_WIN32_WINCE=1 macro in the project settings.
+ For GNU build system/autoconf based build system, we need to
declare PJ_AUTOCONF=1 macro when compiling the applications.
(Note: the old PJ build system requires declaring the target processor
with PJ_M_XXX=1 macro, but this has been made obsolete. The target
processor will be detected from compiler's predefined macro by
pjlib/config.h file).
5. Link with the appropriate PJ libraries. The following libraries will
need to be included in the library link specifications:
pjlib
Base library used by all libraries.
pjlib-util
Auxiliary library containing scanner, XML, STUN, MD5, getopt,
etc, used by the SIP and media stack.
pjsip
SIP core stack library.
pjsip-ua
SIP user agent library containing INVITE session, call
transfer, client registration, etc.
pjsip-simple
SIP SIMPLE library for base event framework, presence, instant
messaging, etc.
pjsua
High level SIP UA library, combining SIP and media stack into
high-level easy to use API.
pjmedia
The media framework.
pjmedia-codec
Container library for various codecs such as GSM, Speex, and
iLBC.
Note: the actual library names will be appended with the target name and the
build configuration. For example:
For Visual Studio builds
The actual library names will look like
pjlib-i386-win32-vc6-debug.lib,
pjlib-i386-win32-vc6-release.lib, etc., depending on whether we
are building the Debug or Release version of the library.
An easier way to link with the libraries is to include PJ
project files in the workspace, and to configure project
dependencies so that the application depends on the PJ
libraries. This way, we don't need to manually add each PJ
libraries to the input library file specification, since VS
will automatically link the dependency libraries with the
application.
For Windows Mobile builds
Unfortunately the PJ libraries built for Windows Mobile will
not be placed in the usual lib directory, but rather under the
output directory under build/wince-evc4 project directory.
An easier way to link with the libraries is to include PJ
project files in the workspace, and to configure project
dependencies so that the application depends on the PJ
libraries. This way, we don't need to manually add each PJ
libraries to the input library file specification, since VS
will automatically link the dependency libraries with the
application.
For GNU builds
Application's Makefile can get the PJ library suffix by
including PJ's build.mak file from the root PJ directory (the
suffix is contained in TARGET_NAME variable). For example, to
link with PJLIB and PJMEDIA, we can use this syntax in the
LDFLAGS: "-lpj-$(TARGET_NAME) -lpjmedia-$(TARGET_NAME)"
6. Link with system spesific libraries:
Windows
Add (among other things): wsock32.lib, ws2_32.lib, ole32.lib,
dsound.lib
Linux, *nix, *BSD
Add (among other things): '-lpthread -lm' (at least).
MacOS X
Add (among other things): '-framework CoreAudio -lpthread -lm'.
Appendix I: Common Problems/Frequently Asked Question (FAQ)
_________________________________________________________________
I.1 fatal error C1083: Cannot open include file: 'pj/config_site.h': No such
file or directory
This error normally occurs when the config_site.h file has not been created.
This file needs to be created manually (an empty file is sufficient). Please
follow the Build Preparation instructions above to create this file.
_________________________________________________________________
Feedback:
Thanks for using PJ libraries and for reading this document. Please
send feedbacks or general comments to <bennylp at pjsip dot org>.

66
SECURITY.md Normal file
View File

@ -0,0 +1,66 @@
# Security Policy
## Supported Versions
| Version | Supported |
| ------- | ------------------ |
| 2.x | :white_check_mark: |
| < 2.0 | :x: |
## Reporting a Vulnerability
Please email security@pjsip.org
Encrypt sensitive information using our PGP public key below.
```
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID: Teluu <security@pjsip.org>
Comment: Created: 1/24/2024 10:05 AM
Comment: Expires: 12/31/2029 12:00 PM
Comment: Type: 3,072-bit RSA (secret key available)
Comment: Usage: Signing, Encryption, Certifying User-IDs
Comment: Fingerprint: BCCC7ADEFFABAAB10FA4CDC027E875D43D995460
mQGNBGWwfm8BDACpBBGoBkkxgkm6hao9Fk63iEt3mJ6Ycg2BabeA7ZeHAA1IMkMG
6247Y08Mk5DkqS+SeDu//44I6MQ/3tEDHqr59/F1qqhsu4zvPDOSgcfCET9kL7u0
XhCrJC0DbEpTNmY9prnvNnzJOTzvbDQVysUII6b4UwhWC+Y+qhl6csVhoHUphwMs
XZDtMR3EPpNbIrkXgUWRhEkcR2iuuLxnmdGTH8gDrtiq+IBcANkzojIEEQPulv6r
IrrGbVx8hFRgbk5mJwIy6xRfr+5ah5gUeNM8fV/BwCUOP++qtY3c491I499XXdWa
OpSRTSYgqY0kI0rl8B75FLG0qjnB1ySbmek++bWzK6sCJWmJxJJGjzVr3sccHOQZ
hDUoK82OFkvde0em8HU1WnshRbSJhchrL6bO4uDMrGCYdO9uE2XHb/UiKFE9mCrw
JKZlDg6PPUf8Gkqf594S3raekrvwWEmq/JWsk3WtNancMUQRd1pQR6ouXU0mHIih
+1qf6hvXITxzDccAEQEAAbQaVGVsdXUgPHNlY3VyaXR5QHBqc2lwLm9yZz6JAdcE
EwEIAEEWIQS8zHre/6uqsQ+kzcAn6HXUPZlUYAUCZbB+bwIbAwUJCypO4QULCQgH
AgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRAn6HXUPZlUYJmfDACLT86rTd+JMpUY
iqYbELpOBfMkY0ebXVWQE/1FjmE5itS6XgHb3BWwXq99wtn9yKgwqbG8F2A/PVZd
4Ga/EI0jyfJN85tjbk+bEqAkKIhzVljuLl6qkDqOOr6EzGAVAHLIJ1NgPLOOZKF8
WM4t3WBTKRTJmGL9uNE/yblbRqrtsLAbtLcyZk0f8E8UYCIrWHKV7teop0VeBUw3
+a0ISa9NHCLH35FYGROPL3s1CieWrYOSS/B8ncChqB8sfCE3UkcTTWvPSvCpYEIY
mZjQa975HFcvYaD+sYJ+ZwJJGg5fm1jLaGFrL5zTvPpx53Y3u/SBXTeGEmal/tvp
s5hz/3ZZeSmTLLcWjG1xcxVGnQF7EK4h1EmvcTz7mZrTY+ZHohnv7a50G3C5eo2s
tNkf0E0ajfmgLXClxWMue+TzhwnnMQN7jdbTRU8SLgooG4LJeww7TiLI2eiyZC7L
wOhNsbOyofnIfT0q/xWHKGJFe7Sffk6+cT/Jw0EWrt+34ATEUmC5AY0EZbB+bwEM
AKan7Fo7Y2PDLh+hMb4KrPfQyypBIv8+//Ln4oEZLcYFcNzdWWVc4z54YfqkSu8j
vGhjYKk5JK1l9RBHPoFGPV4pmG2hf/wSeNoYcs7Tz4wQapCYLNL6ouA9hJIezG5S
BYs74njIrFtycJXlXhOlqzsJQ7dcMWlYjeXyiOFVYWyzcfwZWGJQ7i6YotmRxx6j
IfJ3abRJtgTeUXqUNUagetpOjno+R8uYhm6r1sgajyi/WE8QMixVNoWgUo94jhk4
ZAcAAw/gBN+pGQawf9TOC4llle8g0YENf39m/GtQ6PD6ks1pSnjXNLhiIHkrv5eD
+I8td0RSbsHqgWjO1F4/h1eH4yQXbV5QTIcVgE5yLqIQaoScEFsOokLFm8NDWrVA
eI0TBbOm1qtHaPpJROrEQkTyJBBFCFKRuC5u7LCirlN+O21lZDgKg/bPNe6tV4zr
30FEsVy0njusY5ZSapbLemAOQldIwphgp8WBMFxq1tb86n6dOLYYte1A8DF3ryHM
iQARAQABiQG8BBgBCAAmFiEEvMx63v+rqrEPpM3AJ+h11D2ZVGAFAmWwfm8CGwwF
CQsqTuEACgkQJ+h11D2ZVGAcLAv+JB0iNqrtVG/cqBz44VC2+zJ6rAuGYuiR1sNL
Ejvk9D483ZUKUpsZOjpVkgEJ88Fw73RoAiuEvF78mN6CloIIxQtJCFRs66PECjJP
m9pjzx5wer2TqC+7l6fNp8pXFuLoeirvYTPisdUM+cqJ9N37BekqqiE0LSdGWcmK
GqlO3DjPgyWfjE5rSGy9Bu4l9HKmv8AUtFiw3g65cwDC/23LFYK+HJB8gelLytkp
kLSC6HbNg6lpnFoqhIJYBr3TK8IKXhD62dO4B3IyWnqMnKFJ2fv1ILj42LlzWgZo
ULnZUI/EUpV3+5ELVmNKJiWGB1OgVsaJalN5TMqnr2iXPg1qnJzvzvvuwwDfA6g0
EeR5H7yOK5WvQvGDJrUaESXRMZgubJmv42EmfT048Ajq1/SaWTdQqRK9CoFIJTOY
lQAakbU2ukwSJRdwd+PDRFWB8c4geIAtiYJw+LseTKtjo4++hADQBoRkqgnKB1o7
oUbFbwQAAHfNE3xFJespnLA/KbbO
=Oiwu
-----END PGP PUBLIC KEY BLOCK-----
```

18171
aconfigure

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,66 +1,357 @@
export PJDIR := @ac_pjdir@
include $(PJDIR)/version.mak
export PJ_DIR := $(PJDIR)
# @configure_input@
export MACHINE_NAME := auto
export OS_NAME := auto
export HOST_NAME := unix
export CC_NAME := gcc
export TARGET_ARCH := @ac_target_arch@
export STD_CPP_LIB := @ac_std_cpp_lib@
export TARGET_NAME := @target@
export CROSS_COMPILE := @ac_cross_compile@
export LINUX_POLL := @ac_linux_poll@
export SHLIB_SUFFIX := @ac_shlib_suffix@
export prefix := @prefix@
export exec_prefix := @exec_prefix@
export includedir := @includedir@
export libdir := @libdir@
LIB_SUFFIX := $(TARGET_NAME).a
ifeq (@ac_shared_libraries@,1)
export PJ_SHARED_LIBRARIES := 1
endif
ifeq (@ac_no_pjsua2@,1)
export PJ_EXCLUDE_PJSUA2 := 1
endif
ifndef EXCLUDE_APP
ifeq ($(findstring android,$(TARGET_NAME)),)
export EXCLUDE_APP := 0
else
export EXCLUDE_APP := 1
endif
endif
# Determine which party libraries to use
export APP_THIRD_PARTY_LIBS := -lresample-$(TARGET_NAME) -lmilenage-$(TARGET_NAME) -lsrtp-$(TARGET_NAME)
export APP_THIRD_PARTY_EXT :=
export APP_THIRD_PARTY_LIBS :=
export APP_THIRD_PARTY_LIB_FILES :=
ifneq (@ac_no_srtp@,1)
ifneq (@ac_external_srtp@,0)
# External SRTP library
APP_THIRD_PARTY_EXT += -l@ac_external_srtp_lib@
else
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libsrtp-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lsrtp-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lsrtp
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libsrtp.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libsrtp.$(SHLIB_SUFFIX)
endif
endif
endif
ifeq (@ac_pjmedia_resample@,libresample)
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libresample-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
ifeq (@ac_resample_dll@,1)
export PJ_RESAMPLE_DLL := 1
APP_THIRD_PARTY_LIBS += -lresample
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libresample.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libresample.$(SHLIB_SUFFIX)
else
APP_THIRD_PARTY_LIBS += -lresample-$(TARGET_NAME)
endif
else
APP_THIRD_PARTY_LIBS += -lresample
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libresample.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libresample.$(SHLIB_SUFFIX)
endif
endif
ifneq (@ac_no_gsm_codec@,1)
ifeq (@ac_external_gsm@,1)
# External GSM library
APP_THIRD_PARTY_EXT += -lgsm
else
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libgsmcodec-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lgsmcodec-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lgsmcodec
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libgsmcodec.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libgsmcodec.$(SHLIB_SUFFIX)
endif
endif
endif
ifneq (@ac_no_speex_codec@,1)
ifeq (@ac_external_speex@,1)
APP_THIRD_PARTY_EXT += -lspeex -lspeexdsp
else
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libspeex-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lspeex-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lspeex
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libspeex.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libspeex.$(SHLIB_SUFFIX)
endif
endif
endif
ifneq (@ac_no_ilbc_codec@,1)
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libilbccodec-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lilbccodec-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lilbccodec
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libilbccodec.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libilbccodec.$(SHLIB_SUFFIX)
endif
endif
ifneq ($(findstring pa,@ac_pjmedia_snd@),)
APP_THIRD_PARTY_LIBS += -lportaudio-$(TARGET_NAME)
ifneq (@ac_no_g7221_codec@,1)
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libg7221codec-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lg7221codec-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lg7221codec
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libg7221codec.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libg7221codec.$(SHLIB_SUFFIX)
endif
endif
ifeq (@ac_external_pa@,1)
# External PA
APP_THIRD_PARTY_EXT += -lportaudio
endif
ifneq (@ac_no_yuv@,1)
ifeq (@ac_external_yuv@,1)
APP_THIRD_PARTY_EXT += -lyuv
else
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libyuv-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lyuv-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lyuv
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libyuv.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libyuv.$(SHLIB_SUFFIX)
endif
endif
endif
ifneq (@ac_no_webrtc@,1)
ifeq (@ac_external_webrtc@,1)
APP_THIRD_PARTY_EXT += -lwebrtc
else
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libwebrtc-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lwebrtc-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lwebrtc
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libwebrtc.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libwebrtc.$(SHLIB_SUFFIX)
endif
endif
endif
ifneq (@ac_no_webrtc_aec3@,1)
ifeq (@ac_external_webrtc_aec3@,1)
APP_THIRD_PARTY_EXT += -lwebrtc-aec3
else
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libwebrtc-aec3-$(LIB_SUFFIX)
ifeq ($(PJ_SHARED_LIBRARIES),)
APP_THIRD_PARTY_LIBS += -lwebrtc-aec3-$(TARGET_NAME)
else
APP_THIRD_PARTY_LIBS += -lwebrtc-aec3
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libwebrtc-aec3.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libwebrtc.$(SHLIB_SUFFIX)
endif
endif
endif
# Additional flags
@ac_build_mak_vars@
#
# Video
# Note: there are duplicated macros in pjmedia/os-auto.mak.in (and that's not
# good!
# SDL flags
SDL_CFLAGS = @ac_sdl_cflags@
SDL_LDFLAGS = @ac_sdl_ldflags@
# FFMPEG flags
FFMPEG_CFLAGS = @ac_ffmpeg_cflags@
FFMPEG_LDFLAGS = @ac_ffmpeg_ldflags@
# Video4Linux2
V4L2_CFLAGS = @ac_v4l2_cflags@
V4L2_LDFLAGS = @ac_v4l2_ldflags@
# OPENH264 flags
OPENH264_CFLAGS = @ac_openh264_cflags@
OPENH264_LDFLAGS = @ac_openh264_ldflags@
# VPX flags
VPX_CFLAGS = @ac_vpx_cflags@
VPX_LDFLAGS = @ac_vpx_ldflags@
# QT
AC_PJMEDIA_VIDEO_HAS_QT = @ac_pjmedia_video_has_qt@
# QT_CFLAGS = @ac_qt_cflags@
# Darwin (Mac and iOS)
AC_PJMEDIA_VIDEO_HAS_DARWIN = @ac_pjmedia_video_has_darwin@
AC_PJMEDIA_VIDEO_HAS_METAL = @ac_pjmedia_video_has_metal@
AC_PJMEDIA_VIDEO_HAS_VTOOLBOX = @ac_pjmedia_video_has_vtoolbox@
AC_PJMEDIA_VIDEO_HAS_IOS_OPENGL = @ac_pjmedia_video_has_ios_opengl@
DARWIN_CFLAGS = @ac_darwin_cflags@
# mingw
AC_PJMEDIA_VIDEO_DEV_HAS_DSHOW = @ac_pjmedia_video_dev_has_dshow@
ifeq (@ac_pjmedia_video_dev_has_dshow@,yes)
DSHOW_CFLAGS = @ac_dshow_cflags@
DSHOW_LDFLAGS = @ac_dshow_ldflags@
APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libbaseclasses-$(LIB_SUFFIX)
APP_THIRD_PARTY_LIBS += -lbaseclasses-$(TARGET_NAME)
endif
# Android
ANDROID_CFLAGS = @ac_android_cflags@
OBOE_CFLAGS = @ac_oboe_cflags@
# PJMEDIA features exclusion
PJ_VIDEO_CFLAGS += $(SDL_CFLAGS) $(FFMPEG_CFLAGS) $(V4L2_CFLAGS) $(DSHOW_CFLAGS) $(QT_CFLAGS) \
$(OPENH264_CFLAGS) $(VPX_CFLAGS) $(DARWIN_CFLAGS)
PJ_VIDEO_LDFLAGS += $(SDL_LDFLAGS) $(FFMPEG_LDFLAGS) $(V4L2_LDFLAGS) $(DSHOW_LDFLAGS) \
$(OPENH264_LDFLAGS) $(VPX_LDFLAGS)
# CFLAGS, LDFLAGS, and LIBS to be used by applications
export PJDIR := @ac_pjdir@
export APP_CC := $(CROSS_COMPILE)$(CC_NAME)
export APP_CC := @CC@
export APP_CXX := @CXX@
export APP_CFLAGS := -DPJ_AUTOCONF=1\
@CFLAGS@\
-I$(PJDIR)/pjlib/include\
-I$(PJDIR)/pjlib-util/include\
-I$(PJDIR)/pjnath/include\
-I$(PJDIR)/pjmedia/include\
-I$(PJDIR)/pjsip/include
export APP_CXXFLAGS := $(APP_CFLAGS)
@CFLAGS@\
$(PJ_VIDEO_CFLAGS) \
-I$(PJDIR)/pjlib/include\
-I$(PJDIR)/pjlib-util/include\
-I$(PJDIR)/pjnath/include\
-I$(PJDIR)/pjmedia/include\
-I$(PJDIR)/pjsip/include
export APP_CXXFLAGS := @CXXFLAGS@ $(APP_CFLAGS)
export APP_LDFLAGS := -L$(PJDIR)/pjlib/lib\
-L$(PJDIR)/pjlib-util/lib\
-L$(PJDIR)/pjnath/lib\
-L$(PJDIR)/pjmedia/lib\
-L$(PJDIR)/pjsip/lib\
-L$(PJDIR)/third_party/lib\
@LDFLAGS@
export APP_LDLIBS := -lpjsua-$(TARGET_NAME)\
-lpjsip-ua-$(TARGET_NAME)\
-lpjsip-simple-$(TARGET_NAME)\
-lpjsip-$(TARGET_NAME)\
-lpjmedia-codec-$(TARGET_NAME)\
-lpjmedia-$(TARGET_NAME)\
-lpjnath-$(TARGET_NAME)\
-lpjlib-util-$(TARGET_NAME)\
$(APP_THIRD_PARTY_LIBS)\
-lpj-$(TARGET_NAME)\
@LIBS@
-L$(PJDIR)/pjlib-util/lib\
-L$(PJDIR)/pjnath/lib\
-L$(PJDIR)/pjmedia/lib\
-L$(PJDIR)/pjsip/lib\
-L$(PJDIR)/third_party/lib\
$(PJ_VIDEO_LDFLAGS) \
@LDFLAGS@
export APP_LDXXFLAGS := $(APP_LDFLAGS)
export PJ_DIR := $(PJDIR)
export APP_LIB_FILES := \
$(PJ_DIR)/pjsip/lib/libpjsua-$(LIB_SUFFIX) \
$(PJ_DIR)/pjsip/lib/libpjsip-ua-$(LIB_SUFFIX) \
$(PJ_DIR)/pjsip/lib/libpjsip-simple-$(LIB_SUFFIX) \
$(PJ_DIR)/pjsip/lib/libpjsip-$(LIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-codec-$(LIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-videodev-$(LIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-$(LIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-audiodev-$(LIB_SUFFIX) \
$(PJ_DIR)/pjnath/lib/libpjnath-$(LIB_SUFFIX) \
$(PJ_DIR)/pjlib-util/lib/libpjlib-util-$(LIB_SUFFIX) \
$(APP_THIRD_PARTY_LIB_FILES) \
$(PJ_DIR)/pjlib/lib/libpj-$(LIB_SUFFIX)
export APP_LIBXX_FILES := \
$(PJ_DIR)/pjsip/lib/libpjsua2-$(LIB_SUFFIX) \
$(APP_LIB_FILES)
ifeq ($(PJ_SHARED_LIBRARIES),)
export PJLIB_LDLIB := -lpj-$(TARGET_NAME)
export PJLIB_UTIL_LDLIB := -lpjlib-util-$(TARGET_NAME)
export PJNATH_LDLIB := -lpjnath-$(TARGET_NAME)
export PJMEDIA_AUDIODEV_LDLIB := -lpjmedia-audiodev-$(TARGET_NAME)
export PJMEDIA_VIDEODEV_LDLIB := -lpjmedia-videodev-$(TARGET_NAME)
export PJMEDIA_LDLIB := -lpjmedia-$(TARGET_NAME)
export PJMEDIA_CODEC_LDLIB := -lpjmedia-codec-$(TARGET_NAME)
export PJSIP_LDLIB := -lpjsip-$(TARGET_NAME)
export PJSIP_SIMPLE_LDLIB := -lpjsip-simple-$(TARGET_NAME)
export PJSIP_UA_LDLIB := -lpjsip-ua-$(TARGET_NAME)
export PJSUA_LIB_LDLIB := -lpjsua-$(TARGET_NAME)
export PJSUA2_LIB_LDLIB := -lpjsua2-$(TARGET_NAME)
else
export PJLIB_LDLIB := -lpj
export PJLIB_UTIL_LDLIB := -lpjlib-util
export PJNATH_LDLIB := -lpjnath
export PJMEDIA_AUDIODEV_LDLIB := -lpjmedia-audiodev
export PJMEDIA_VIDEODEV_LDLIB := -lpjmedia-videodev
export PJMEDIA_LDLIB := -lpjmedia
export PJMEDIA_CODEC_LDLIB := -lpjmedia-codec
export PJSIP_LDLIB := -lpjsip
export PJSIP_SIMPLE_LDLIB := -lpjsip-simple
export PJSIP_UA_LDLIB := -lpjsip-ua
export PJSUA_LIB_LDLIB := -lpjsua
export PJSUA2_LIB_LDLIB := -lpjsua2
export ADD_LIB_FILES := $(PJ_DIR)/pjsip/lib/libpjsua.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsua.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjsip/lib/libpjsip-ua.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsip-ua.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjsip/lib/libpjsip-simple.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsip-simple.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjsip/lib/libpjsip.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsip.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-codec.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjmedia/lib/libpjmedia-codec.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-videodev.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjmedia/lib/libpjmedia-videodev.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjmedia/lib/libpjmedia.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjmedia/lib/libpjmedia-audiodev.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjmedia/lib/libpjmedia-audiodev.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjnath/lib/libpjnath.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjnath/lib/libpjnath.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjlib-util/lib/libpjlib-util.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjlib-util/lib/libpjlib-util.$(SHLIB_SUFFIX) \
$(PJ_DIR)/pjlib/lib/libpj.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjlib/lib/libpj.$(SHLIB_SUFFIX)
APP_LIB_FILES += $(ADD_LIB_FILES)
APP_LIBXX_FILES += $(PJ_DIR)/pjsip/lib/libpjsua2.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsua2.$(SHLIB_SUFFIX) \
$(ADD_LIB_FILES)
endif
ifeq ($(PJ_EXCLUDE_PJSUA2),1)
export PJSUA2_LIB_LDLIB :=
endif
export APP_LDLIBS := $(PJSUA_LIB_LDLIB) \
$(PJSIP_UA_LDLIB) \
$(PJSIP_SIMPLE_LDLIB) \
$(PJSIP_LDLIB) \
$(PJMEDIA_CODEC_LDLIB) \
$(PJMEDIA_VIDEODEV_LDLIB) \
$(PJMEDIA_AUDIODEV_LDLIB) \
$(PJMEDIA_LDLIB) \
$(PJNATH_LDLIB) \
$(PJLIB_UTIL_LDLIB) \
$(APP_THIRD_PARTY_LIBS)\
$(APP_THIRD_PARTY_EXT)\
$(PJLIB_LDLIB) \
@LIBS@
export APP_LDXXLIBS := $(PJSUA2_LIB_LDLIB) \
-lstdc++ \
$(APP_LDLIBS)
# Here are the variables to use if application is using the library
# from within the source distribution
export PJ_CC := $(APP_CC)
export PJ_CXX := $(APP_CXX)
export PJ_CFLAGS := $(APP_CFLAGS)
export PJ_CXXFLAGS := $(APP_CXXFLAGS)
export PJ_LDFLAGS := $(APP_LDFLAGS)
export PJ_LDXXFLAGS := $(APP_LDXXFLAGS)
export PJ_LDLIBS := $(APP_LDLIBS)
export PJ_LDXXLIBS := $(APP_LDXXLIBS)
export PJ_LIB_FILES := $(APP_LIB_FILES)
export PJ_LIBXX_FILES := $(APP_LIBXX_FILES)
# And here are the variables to use if application is using the
# library from the install location (i.e. --prefix)
export PJ_INSTALL_DIR := @prefix@
export PJ_INSTALL_INC_DIR := @includedir@
export PJ_INSTALL_LIB_DIR := @libdir@
export PJ_INSTALL_CFLAGS := -I$(PJ_INSTALL_INC_DIR) -DPJ_AUTOCONF=1 @ac_cflags@
export PJ_INSTALL_LDFLAGS_PRIVATE := $(APP_THIRD_PARTY_LIBS) $(APP_THIRD_PARTY_EXT) @LIBS@
export PJ_INSTALL_LDFLAGS := -L$(PJ_INSTALL_LIB_DIR) $(filter-out $(PJ_INSTALL_LDFLAGS_PRIVATE),$(APP_LDXXLIBS))

View File

@ -3,4 +3,5 @@
@rem set EPOCROOT=\Symbian\9.1\S60_3rd_MR_2\
@rem set EPOCROOT=\Symbian\UIQ3SDK\
@rem set EPOCROOT=\symbian\UIQ3.1\
@rem set EPOCROOT=\symbian\9.2\S60_3rd_FP1\
bldmake bldfiles

View File

@ -1,21 +1,35 @@
prj_platforms
winscw
//armv5
armv5
gcce
prj_mmpfiles
/* Libraries */
pjlib.mmp
pjlib_util.mmp
pjnath.mmp
pjsdp.mmp
null_audio.mmp
symbian_audio.mmp
pjmedia.mmp
pjsip.mmp
pjsip_simple.mmp
pjsip_ua.mmp
pjsua_lib.mmp
libsrtp.mmp
/* Codecs */
libgsmcodec.mmp
libspeexcodec.mmp
libg7221codec.mmp
libpassthroughcodec.mmp
/* Resample */
libresample.mmp
/* Audio device. */
pjmedia_audiodev.mmp
/* Applications */
//symsndtest.mmp
pjlib_test.mmp
symbian_ua.mmp
symsndtest.mmp
../pjsip-apps/src/pjsua/symbian/group/pjsua.mmp

View File

@ -0,0 +1,56 @@
TARGET libg7221codec.lib
TARGETTYPE lib
//OPTION CW -lang c++
OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
//
// GSM codec third party source
//
SOURCEPATH ..\third_party\g7221\common
SOURCE basic_op.c
SOURCE common.c
SOURCE huff_tab.c
SOURCE tables.c
SOURCEPATH ..\third_party\g7221\decode
SOURCE coef2sam.c
SOURCE dct4_s.c
SOURCE decoder.c
SOURCEPATH ..\third_party\g7221\encode
SOURCE dct4_a.c
SOURCE encoder.c
SOURCE sam2coef.c
//
// GSM codec wrapper for pjmedia-codec
//
SOURCEPATH ..\pjmedia\src\pjmedia-codec
SOURCE g7221.c
//
// Header files
//
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\third_party
SYSTEMINCLUDE ..\third_party\g7221\common
SYSTEMINCLUDE ..\third_party\g7221\decode
SYSTEMINCLUDE ..\third_party\g7221\encode
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

View File

@ -0,0 +1,72 @@
#if defined(PJ_BUILD_DLL)
TARGET libgsmcodec.dll
TARGETTYPE dll
UID 0x0 0xA000000F
CAPABILITY None
LIBRARY pjlib.lib euser.lib estlib.lib
MACRO PJ_DLL
MACRO PJ_EXPORTING
DEFFILE .\libgsmcodec.def
#else
TARGET libgsmcodec.lib
TARGETTYPE lib
#endif
//OPTION CW -lang c++
OPTION ARMCC --gnu
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
//
// GSM codec third party source
//
SOURCEPATH ..\third_party\gsm\src
SOURCE add.c
SOURCE code.c
SOURCE debug.c
SOURCE decode.c
SOURCE gsm_create.c
SOURCE gsm_decode.c
SOURCE gsm_destroy.c
SOURCE gsm_encode.c
SOURCE gsm_explode.c
SOURCE gsm_implode.c
SOURCE gsm_option.c
SOURCE gsm_print.c
SOURCE long_term.c
SOURCE lpc.c
SOURCE preprocess.c
SOURCE rpe.c
SOURCE short_term.c
SOURCE table.c
//
// GSM codec wrapper for pjmedia-codec
//
SOURCEPATH ..\pjmedia\src\pjmedia-codec
SOURCE gsm.c
//
// Header files
//
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\third_party\build\gsm
SYSTEMINCLUDE ..\third_party\gsm\inc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

View File

@ -0,0 +1,27 @@
TARGET libpassthroughcodec.lib
TARGETTYPE lib
MACRO HAVE_CONFIG_H
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
//
// GCCE optimization setting
//
OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
//
// Passthrough codecs wrapper for pjmedia-codec
//
SOURCEPATH ..\pjmedia\src\pjmedia-codec
SOURCE passthrough.c
//
// Header files
//
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

View File

@ -0,0 +1,26 @@
TARGET libresample.lib
TARGETTYPE lib
SOURCEPATH ..\third_party\resample\src
//
// GCCE optimization setting
//
OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
MACRO RESAMPLE_HAS_SMALL_FILTER=1
MACRO RESAMPLE_HAS_LARGE_FILTER=0
SOURCE resamplesubs.c
SYSTEMINCLUDE ..\third_party\resample\include
SYSTEMINCLUDE ..\third_party\build\resample
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

View File

@ -0,0 +1,74 @@
TARGET libspeexcodec.lib
TARGETTYPE lib
MACRO HAVE_CONFIG_H
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
//
// GCCE optimization setting
//
OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
//
// Speex files
//
SOURCEPATH ..\third_party\speex\libspeex
SOURCE bits.c
SOURCE cb_search.c
SOURCE exc_5_64_table.c
SOURCE exc_5_256_table.c
SOURCE exc_8_128_table.c
SOURCE exc_10_16_table.c
SOURCE exc_10_32_table.c
SOURCE exc_20_32_table.c
SOURCE fftwrap.c
SOURCE filterbank.c
SOURCE filters.c
SOURCE gain_table.c
SOURCE gain_table_lbr.c
SOURCE hexc_10_32_table.c
SOURCE hexc_table.c
SOURCE high_lsp_tables.c
SOURCE kiss_fft.c
SOURCE kiss_fftr.c
SOURCE lpc.c
SOURCE lsp.c
SOURCE lsp_tables_nb.c
SOURCE ltp.c
SOURCE mdf.c
SOURCE modes.c
SOURCE modes_wb.c
SOURCE nb_celp.c
SOURCE preprocess.c
SOURCE quant_lsp.c
SOURCE sb_celp.c
SOURCE smallft.c
SOURCE speex.c
SOURCE speex_callbacks.c
SOURCE speex_header.c
SOURCE stereo.c
SOURCE vbr.c
SOURCE vq.c
SOURCE window.c
//
// Speex codec wrapper for pjmedia-codec
//
SOURCEPATH ..\pjmedia\src\pjmedia-codec
SOURCE speex_codec.c
//
// Header files
//
SYSTEMINCLUDE ..\third_party\speex\include\speex
SYSTEMINCLUDE ..\third_party\speex\include
SYSTEMINCLUDE ..\third_party\speex\symbian
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

60
build.symbian/libsrtp.mmp Normal file
View File

@ -0,0 +1,60 @@
TARGET libsrtp.lib
TARGETTYPE lib
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
//
// GCCE optimization setting
//
OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
//
// Speex files
//
SOURCEPATH ..\third_party\srtp
SOURCE crypto\ae_xfm\xfm.c
SOURCE crypto\cipher\aes.c
SOURCE crypto\cipher\aes_cbc.c
SOURCE crypto\cipher\aes_icm.c
SOURCE crypto\cipher\cipher.c
SOURCE crypto\cipher\null_cipher.c
SOURCE crypto\hash\auth.c
SOURCE crypto\hash\hmac.c
SOURCE crypto\hash\null_auth.c
SOURCE crypto\hash\sha1.c
SOURCE crypto\kernel\alloc.c
SOURCE crypto\kernel\crypto_kernel.c
//SOURCE crypto\kernel\err.c
SOURCE crypto\kernel\key.c
SOURCE crypto\math\datatypes.c
SOURCE crypto\math\gf2_8.c
//SOURCE crypto\math\math.c
SOURCE crypto\math\stat.c
SOURCE crypto\replay\rdb.c
SOURCE crypto\replay\rdbx.c
//SOURCE crypto\replay\ut_sim.c
SOURCE crypto\rng\ctr_prng.c
SOURCE crypto\rng\prng.c
//SOURCE crypto\rng\rand_linux_kernel.c
SOURCE crypto\rng\rand_source.c
SOURCE pjlib\srtp_err.c
SOURCE srtp\srtp.c
SOURCE tables\aes_tables.c
//SOURCEPATH ..\pjmedia\src\pjmedia
//SOURCE transport_srtp.c
//
// Header files
//
SYSTEMINCLUDE ..\third_party\srtp\include
SYSTEMINCLUDE ..\third_party\srtp\crypto\include
SYSTEMINCLUDE ..\third_party\build\srtp
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

View File

@ -22,6 +22,7 @@ TARGETTYPE lib
SOURCEPATH ..\pjmedia\src\pjmedia
OPTION CW -lang c++
OPTION ARMCC --gnu
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1

View File

@ -19,16 +19,19 @@ TARGETTYPE lib
SOURCEPATH ..\pjlib\src\pj
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
//
// Platform independent source
//
SOURCE activesock.c
SOURCE array.c
SOURCE config.c
SOURCE ctype.c
@ -40,13 +43,18 @@ SOURCE list.c
SOURCE lock.c
SOURCE string.c
SOURCE log.c
SOURCE os_info.c
SOURCE os_info_symbian.cpp
SOURCE os_time_common.c
SOURCE pool.c
SOURCE pool_buf.c
SOURCE pool_caching.c
SOURCE rand.c
SOURCE rbtree.c
SOURCE ssl_sock_common.c
SOURCE ssl_sock_dump.c
SOURCE sock_common.c
SOURCE sock_qos_common.c
SOURCE types.c
@ -68,8 +76,10 @@ SOURCE os_timestamp_common.c
SOURCE os_time_unix.c
SOURCE os_timestamp_posix.c
SOURCE pool_policy_new.cpp
SOURCE ssl_sock_symbian.cpp
SOURCE sock_symbian.cpp
SOURCE sock_select_symbian.cpp
SOURCE sock_qos_symbian.cpp
SOURCE timer_symbian.cpp
SOURCE unicode_symbian.cpp

View File

@ -130,194 +130,197 @@ EXPORTS
pj_ioqueue_recv @ 129 NONAME
pj_ioqueue_recvfrom @ 130 NONAME
pj_ioqueue_register_sock @ 131 NONAME
pj_ioqueue_send @ 132 NONAME
pj_ioqueue_sendto @ 133 NONAME
pj_ioqueue_set_lock @ 134 NONAME
pj_ioqueue_set_user_data @ 135 NONAME
pj_ioqueue_unregister @ 136 NONAME
pj_leave_critical_section @ 137 NONAME
pj_list_erase @ 138 NONAME
pj_list_find_node @ 139 NONAME
pj_list_insert_after @ 140 NONAME
pj_list_insert_before @ 141 NONAME
pj_list_insert_nodes_after @ 142 NONAME
pj_list_insert_nodes_before @ 143 NONAME
pj_list_merge_first @ 144 NONAME
pj_list_merge_last @ 145 NONAME
pj_list_search @ 146 NONAME
pj_list_size @ 147 NONAME
pj_lock_acquire @ 148 NONAME
pj_lock_create_null_mutex @ 149 NONAME
pj_lock_create_recursive_mutex @ 150 NONAME
pj_lock_create_semaphore @ 151 NONAME
pj_lock_create_simple_mutex @ 152 NONAME
pj_lock_destroy @ 153 NONAME
pj_lock_release @ 154 NONAME
pj_lock_tryacquire @ 155 NONAME
pj_log @ 156 NONAME
pj_log_1 @ 157 NONAME
pj_log_2 @ 158 NONAME
pj_log_3 @ 159 NONAME
pj_log_4 @ 160 NONAME
pj_log_5 @ 161 NONAME
pj_log_get_decor @ 162 NONAME
pj_log_get_level @ 163 NONAME
pj_log_get_log_func @ 164 NONAME
pj_log_set_decor @ 165 NONAME
pj_log_set_level @ 166 NONAME
pj_log_set_log_func @ 167 NONAME
pj_log_write @ 168 NONAME
pj_mutex_create @ 169 NONAME
pj_mutex_create_recursive @ 170 NONAME
pj_mutex_create_simple @ 171 NONAME
pj_mutex_destroy @ 172 NONAME
pj_mutex_lock @ 173 NONAME
pj_mutex_trylock @ 174 NONAME
pj_mutex_unlock @ 175 NONAME
pj_ntohl @ 176 NONAME
pj_ntohs @ 177 NONAME
pj_pool_alloc @ 178 NONAME
pj_pool_alloc_from_block @ 179 NONAME
pj_pool_allocate_find @ 180 NONAME
pj_pool_calloc @ 181 NONAME
pj_pool_create @ 182 NONAME
pj_pool_create_int @ 183 NONAME
pj_pool_create_on_buf @ 184 NONAME
pj_pool_destroy_int @ 185 NONAME
pj_pool_factory_default_policy @ 186 NONAME
pj_pool_factory_get_default_policy @ 187 NONAME
pj_pool_get_capacity @ 188 NONAME
pj_pool_get_used_size @ 189 NONAME
pj_pool_getobjname @ 190 NONAME
pj_pool_init_int @ 191 NONAME
pj_pool_release @ 192 NONAME
pj_pool_reset @ 193 NONAME
pj_rand @ 194 NONAME
pj_rbtree_erase @ 195 NONAME
pj_rbtree_find @ 196 NONAME
pj_rbtree_first @ 197 NONAME
pj_rbtree_init @ 198 NONAME
pj_rbtree_insert @ 199 NONAME
pj_rbtree_last @ 200 NONAME
pj_rbtree_max_height @ 201 NONAME
pj_rbtree_min_height @ 202 NONAME
pj_rbtree_next @ 203 NONAME
pj_rbtree_prev @ 204 NONAME
pj_register_strerror @ 205 NONAME
pj_rwmutex_create @ 206 NONAME
pj_rwmutex_destroy @ 207 NONAME
pj_rwmutex_lock_read @ 208 NONAME
pj_rwmutex_lock_write @ 209 NONAME
pj_rwmutex_unlock_read @ 210 NONAME
pj_rwmutex_unlock_write @ 211 NONAME
pj_sem_create @ 212 NONAME
pj_sem_destroy @ 213 NONAME
pj_sem_post @ 214 NONAME
pj_sem_trywait @ 215 NONAME
pj_sem_wait @ 216 NONAME
pj_set_netos_error @ 217 NONAME
pj_set_os_error @ 218 NONAME
pj_shutdown @ 219 NONAME
pj_sock_accept @ 220 NONAME
pj_sock_bind @ 221 NONAME
pj_sock_bind_in @ 222 NONAME
pj_sock_close @ 223 NONAME
pj_sock_connect @ 224 NONAME
pj_sock_getpeername @ 225 NONAME
pj_sock_getsockname @ 226 NONAME
pj_sock_getsockopt @ 227 NONAME
pj_sock_listen @ 228 NONAME
pj_sock_recv @ 229 NONAME
pj_sock_recvfrom @ 230 NONAME
pj_sock_select @ 231 NONAME
pj_sock_send @ 232 NONAME
pj_sock_sendto @ 233 NONAME
pj_sock_setsockopt @ 234 NONAME
pj_sock_shutdown @ 235 NONAME
pj_sock_socket @ 236 NONAME
pj_sockaddr_cmp @ 237 NONAME
pj_sockaddr_copy_addr @ 238 NONAME
pj_sockaddr_get_addr @ 239 NONAME
pj_sockaddr_get_addr_len @ 240 NONAME
pj_sockaddr_get_len @ 241 NONAME
pj_sockaddr_get_port @ 242 NONAME
pj_sockaddr_has_addr @ 243 NONAME
pj_sockaddr_in_get_addr @ 244 NONAME
pj_sockaddr_in_get_port @ 245 NONAME
pj_sockaddr_in_init @ 246 NONAME
pj_sockaddr_in_set_addr @ 247 NONAME
pj_sockaddr_in_set_port @ 248 NONAME
pj_sockaddr_in_set_str_addr @ 249 NONAME
pj_sockaddr_init @ 250 NONAME
pj_sockaddr_print @ 251 NONAME
pj_sockaddr_set_port @ 252 NONAME
pj_sockaddr_set_str_addr @ 253 NONAME
pj_srand @ 254 NONAME
pj_str @ 255 NONAME
pj_strassign @ 256 NONAME
pj_strcat @ 257 NONAME
pj_strcat2 @ 258 NONAME
pj_strcmp @ 259 NONAME
pj_strcmp2 @ 260 NONAME
pj_strcpy @ 261 NONAME
pj_strcpy2 @ 262 NONAME
pj_strdup @ 263 NONAME
pj_strdup2 @ 264 NONAME
pj_strdup2_with_null @ 265 NONAME
pj_strdup3 @ 266 NONAME
pj_strdup_with_null @ 267 NONAME
pj_strerror @ 268 NONAME
pj_stricmp @ 269 NONAME
pj_stricmp2 @ 270 NONAME
pj_strltrim @ 271 NONAME
pj_strncmp @ 272 NONAME
pj_strncmp2 @ 273 NONAME
pj_strncpy @ 274 NONAME
pj_strncpy_with_null @ 275 NONAME
pj_strnicmp @ 276 NONAME
pj_strnicmp2 @ 277 NONAME
pj_strrtrim @ 278 NONAME
pj_strtoul @ 279 NONAME
pj_strtoul2 @ 280 NONAME
pj_strtrim @ 281 NONAME
pj_symbianos_poll @ 282 NONAME
pj_symbianos_set_params @ 283 NONAME
pj_thread_check_stack @ 284 NONAME
pj_thread_create @ 285 NONAME
pj_thread_destroy @ 286 NONAME
pj_thread_get_name @ 287 NONAME
pj_thread_get_os_handle @ 288 NONAME
pj_thread_get_stack_info @ 289 NONAME
pj_thread_get_stack_max_usage @ 290 NONAME
pj_thread_is_registered @ 291 NONAME
pj_thread_join @ 292 NONAME
pj_thread_local_alloc @ 293 NONAME
pj_thread_local_free @ 294 NONAME
pj_thread_local_get @ 295 NONAME
pj_thread_local_set @ 296 NONAME
pj_thread_register @ 297 NONAME
pj_thread_resume @ 298 NONAME
pj_thread_sleep @ 299 NONAME
pj_thread_this @ 300 NONAME
pj_time_decode @ 301 NONAME
pj_time_encode @ 302 NONAME
pj_time_gmt_to_local @ 303 NONAME
pj_time_local_to_gmt @ 304 NONAME
pj_time_val_normalize @ 305 NONAME
pj_timer_entry_init @ 306 NONAME
pj_timer_heap_cancel @ 307 NONAME
pj_timer_heap_count @ 308 NONAME
pj_timer_heap_create @ 309 NONAME
pj_timer_heap_destroy @ 310 NONAME
pj_timer_heap_earliest_time @ 311 NONAME
pj_timer_heap_mem_size @ 312 NONAME
pj_timer_heap_poll @ 313 NONAME
pj_timer_heap_schedule @ 314 NONAME
pj_timer_heap_set_lock @ 315 NONAME
pj_timer_heap_set_max_timed_out_per_poll @ 316 NONAME
pj_unicode_to_ansi @ 317 NONAME
pj_utoa @ 318 NONAME
pj_utoa_pad @ 319 NONAME
platform_strerror @ 320 NONAME
snprintf @ 321 NONAME
vsnprintf @ 322 NONAME
pj_ioqueue_register_sock2 @ 132 NONAME
pj_ioqueue_send @ 133 NONAME
pj_ioqueue_sendto @ 134 NONAME
pj_ioqueue_set_lock @ 135 NONAME
pj_ioqueue_set_user_data @ 136 NONAME
pj_ioqueue_unregister @ 137 NONAME
pj_leave_critical_section @ 138 NONAME
pj_list_erase @ 139 NONAME
pj_list_find_node @ 140 NONAME
pj_list_insert_after @ 141 NONAME
pj_list_insert_before @ 142 NONAME
pj_list_insert_nodes_after @ 143 NONAME
pj_list_insert_nodes_before @ 144 NONAME
pj_list_merge_first @ 145 NONAME
pj_list_merge_last @ 146 NONAME
pj_list_search @ 147 NONAME
pj_list_size @ 148 NONAME
pj_lock_acquire @ 149 NONAME
pj_lock_create_null_mutex @ 150 NONAME
pj_lock_create_recursive_mutex @ 151 NONAME
pj_lock_create_semaphore @ 152 NONAME
pj_lock_create_simple_mutex @ 153 NONAME
pj_lock_destroy @ 154 NONAME
pj_lock_release @ 155 NONAME
pj_lock_tryacquire @ 156 NONAME
pj_log @ 157 NONAME
pj_log_1 @ 158 NONAME
pj_log_2 @ 159 NONAME
pj_log_3 @ 160 NONAME
pj_log_4 @ 161 NONAME
pj_log_5 @ 162 NONAME
pj_log_get_decor @ 163 NONAME
pj_log_get_level @ 164 NONAME
pj_log_get_log_func @ 165 NONAME
pj_log_set_decor @ 166 NONAME
pj_log_set_level @ 167 NONAME
pj_log_set_log_func @ 168 NONAME
pj_log_write @ 169 NONAME
pj_mutex_create @ 170 NONAME
pj_mutex_create_recursive @ 171 NONAME
pj_mutex_create_simple @ 172 NONAME
pj_mutex_destroy @ 173 NONAME
pj_mutex_lock @ 174 NONAME
pj_mutex_trylock @ 175 NONAME
pj_mutex_unlock @ 176 NONAME
pj_ntohl @ 177 NONAME
pj_ntohs @ 178 NONAME
pj_pool_alloc @ 179 NONAME
pj_pool_alloc_from_block @ 180 NONAME
pj_pool_allocate_find @ 181 NONAME
pj_pool_calloc @ 182 NONAME
pj_pool_create @ 183 NONAME
pj_pool_create_int @ 184 NONAME
pj_pool_create_on_buf @ 185 NONAME
pj_pool_destroy_int @ 186 NONAME
pj_pool_factory_default_policy @ 187 NONAME
pj_pool_factory_get_default_policy @ 188 NONAME
pj_pool_get_capacity @ 189 NONAME
pj_pool_get_used_size @ 190 NONAME
pj_pool_getobjname @ 191 NONAME
pj_pool_init_int @ 192 NONAME
pj_pool_release @ 193 NONAME
pj_pool_reset @ 194 NONAME
pj_rand @ 195 NONAME
pj_rbtree_erase @ 196 NONAME
pj_rbtree_find @ 197 NONAME
pj_rbtree_first @ 198 NONAME
pj_rbtree_init @ 199 NONAME
pj_rbtree_insert @ 200 NONAME
pj_rbtree_last @ 201 NONAME
pj_rbtree_max_height @ 202 NONAME
pj_rbtree_min_height @ 203 NONAME
pj_rbtree_next @ 204 NONAME
pj_rbtree_prev @ 205 NONAME
pj_register_strerror @ 206 NONAME
pj_rwmutex_create @ 207 NONAME
pj_rwmutex_destroy @ 208 NONAME
pj_rwmutex_lock_read @ 209 NONAME
pj_rwmutex_lock_write @ 210 NONAME
pj_rwmutex_unlock_read @ 211 NONAME
pj_rwmutex_unlock_write @ 212 NONAME
pj_sem_create @ 213 NONAME
pj_sem_destroy @ 214 NONAME
pj_sem_post @ 215 NONAME
pj_sem_trywait @ 216 NONAME
pj_sem_wait @ 217 NONAME
pj_set_netos_error @ 218 NONAME
pj_set_os_error @ 219 NONAME
pj_shutdown @ 220 NONAME
pj_sock_accept @ 221 NONAME
pj_sock_bind @ 222 NONAME
pj_sock_bind_in @ 223 NONAME
pj_sock_close @ 224 NONAME
pj_sock_connect @ 225 NONAME
pj_sock_getpeername @ 226 NONAME
pj_sock_getsockname @ 227 NONAME
pj_sock_getsockopt @ 228 NONAME
pj_sock_listen @ 229 NONAME
pj_sock_recv @ 230 NONAME
pj_sock_recvfrom @ 231 NONAME
pj_sock_select @ 232 NONAME
pj_sock_send @ 233 NONAME
pj_sock_sendto @ 234 NONAME
pj_sock_setsockopt @ 235 NONAME
pj_sock_shutdown @ 236 NONAME
pj_sock_socket @ 237 NONAME
pj_sockaddr_cmp @ 238 NONAME
pj_sockaddr_copy_addr @ 239 NONAME
pj_sockaddr_get_addr @ 240 NONAME
pj_sockaddr_get_addr_len @ 241 NONAME
pj_sockaddr_get_len @ 242 NONAME
pj_sockaddr_get_port @ 243 NONAME
pj_sockaddr_has_addr @ 244 NONAME
pj_sockaddr_in_get_addr @ 245 NONAME
pj_sockaddr_in_get_port @ 246 NONAME
pj_sockaddr_in_init @ 247 NONAME
pj_sockaddr_in_set_addr @ 248 NONAME
pj_sockaddr_in_set_port @ 249 NONAME
pj_sockaddr_in_set_str_addr @ 250 NONAME
pj_sockaddr_init @ 251 NONAME
pj_sockaddr_print @ 252 NONAME
pj_sockaddr_set_port @ 253 NONAME
pj_sockaddr_set_str_addr @ 254 NONAME
pj_srand @ 255 NONAME
pj_str @ 256 NONAME
pj_strassign @ 257 NONAME
pj_strcat @ 258 NONAME
pj_strcat2 @ 259 NONAME
pj_strcmp @ 260 NONAME
pj_strcmp2 @ 261 NONAME
pj_strcpy @ 262 NONAME
pj_strcpy2 @ 263 NONAME
pj_strdup @ 264 NONAME
pj_strdup2 @ 265 NONAME
pj_strdup2_with_null @ 266 NONAME
pj_strdup3 @ 267 NONAME
pj_strdup_with_null @ 268 NONAME
pj_strerror @ 269 NONAME
pj_stricmp @ 270 NONAME
pj_stricmp2 @ 271 NONAME
pj_strltrim @ 272 NONAME
pj_strncmp @ 273 NONAME
pj_strncmp2 @ 274 NONAME
pj_strncpy @ 275 NONAME
pj_strncpy_with_null @ 276 NONAME
pj_strnicmp @ 277 NONAME
pj_strnicmp2 @ 278 NONAME
pj_strrtrim @ 279 NONAME
pj_strtoul @ 280 NONAME
pj_strtoul2 @ 281 NONAME
pj_strtrim @ 282 NONAME
pj_symbianos_poll @ 283 NONAME
pj_symbianos_set_params @ 284 NONAME
pj_thread_check_stack @ 285 NONAME
pj_thread_create @ 286 NONAME
pj_thread_destroy @ 287 NONAME
pj_thread_get_name @ 288 NONAME
pj_thread_get_os_handle @ 289 NONAME
pj_thread_get_stack_info @ 290 NONAME
pj_thread_get_stack_max_usage @ 291 NONAME
pj_thread_is_registered @ 292 NONAME
pj_thread_join @ 293 NONAME
pj_thread_local_alloc @ 294 NONAME
pj_thread_local_free @ 295 NONAME
pj_thread_local_get @ 296 NONAME
pj_thread_local_set @ 297 NONAME
pj_thread_register @ 298 NONAME
pj_thread_resume @ 299 NONAME
pj_thread_sleep @ 300 NONAME
pj_thread_this @ 301 NONAME
pj_time_decode @ 302 NONAME
pj_time_encode @ 303 NONAME
pj_time_gmt_to_local @ 304 NONAME
pj_time_local_to_gmt @ 305 NONAME
pj_time_val_normalize @ 306 NONAME
pj_timer_entry_init @ 307 NONAME
pj_timer_heap_cancel @ 308 NONAME
pj_timer_heap_cancel_if_active @ 309 NONAME
pj_timer_heap_count @ 310 NONAME
pj_timer_heap_create @ 311 NONAME
pj_timer_heap_destroy @ 312 NONAME
pj_timer_heap_earliest_time @ 313 NONAME
pj_timer_heap_mem_size @ 314 NONAME
pj_timer_heap_poll @ 315 NONAME
pj_timer_heap_schedule @ 316 NONAME
pj_timer_heap_schedule_w_grp_lock @ 317 NONAME
pj_timer_heap_set_lock @ 318 NONAME
pj_timer_heap_set_max_timed_out_per_poll @ 319 NONAME
pj_unicode_to_ansi @ 320 NONAME
pj_utoa @ 321 NONAME
pj_utoa_pad @ 322 NONAME
platform_strerror @ 323 NONAME
snprintf @ 324 NONAME
vsnprintf @ 325 NONAME

View File

@ -8,6 +8,12 @@ SOURCEPATH ..\pjlib\src\pjlib-test
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
#if defined(PJ_BUILD_DLL)
MACRO PJ_DLL
LIBRARY pjlib.lib
@ -15,18 +21,16 @@ LIBRARY pjlib.lib
STATICLIBRARY pjlib.lib
#endif
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
// Test files
SOURCE activesock.c
SOURCE atomic.c
SOURCE echo_clt.c
SOURCE errno.c
SOURCE exception.c
SOURCE exception_wrap.cpp
SOURCE fifobuf.c
SOURCE file.c
SOURCE hash_test.c
SOURCE ioq_perf.c
SOURCE ioq_tcp.c
SOURCE ioq_udp.c
@ -34,7 +38,7 @@ SOURCE ioq_unreg.c
SOURCE list.c
SOURCE mutex.c
SOURCE os.c
SOURCE pool.c
SOURCE pool_wrap.cpp
SOURCE pool_perf.c
SOURCE rand.c
SOURCE rbtree.c
@ -42,8 +46,9 @@ SOURCE select.c
SOURCE sleep.c
SOURCE sock.c
SOURCE sock_perf.c
SOURCE ssl_sock.c
SOURCE string.c
SOURCE test.c
SOURCE test_wrap.cpp
SOURCE thread.c
SOURCE timer.c
SOURCE timestamp.c
@ -55,13 +60,24 @@ SOURCE main_symbian.cpp
DOCUMENT test.h
START RESOURCE pjlib_test_reg.rss
TARGETPATH \private\10003a3f\apps
END
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc
LIBRARY esock.lib insock.lib charconv.lib euser.lib estlib.lib
LIBRARY securesocket.lib x509.lib crypto.lib x500.lib
LIBRARY hal.lib efsrv.lib
#ifdef WINSCW
STATICLIBRARY eexe.lib ecrt0.lib
#endif
// Need a bit of mem for logging in the app.
EPOCSTACKSIZE 32768
CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment

View File

@ -0,0 +1,19 @@
; pjlib_test.pkg
; Languages
&EN
; Header
;#{"pjlib_test"},(0x200235D3), 0, 1, 1
#{"pjlib_test"},(0xA0000002), 0, 1, 1
; Platform compatibility
[0x101F7961], *, *, *,{"Series60ProductID"}
; vendor
%{"PJSIP"}
:"PJSIP"
; Target
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\pjlib_test.exe"-"!:\sys\bin\pjlib_test.exe"
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\pjlib_test_reg.rSC"-"!:\private\10003a3f\import\apps\pjlib_test_reg.rSC"

View File

@ -22,29 +22,38 @@ SOURCEPATH ..\pjlib-util\src\pjlib-util
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
//
// PJLIB-UTIL files
//
SOURCE base64.c
SOURCE cli.c
SOURCE cli_console.c
SOURCE cli_telnet.c
SOURCE crc32.c
SOURCE dns.c
SOURCE dns_dump.c
SOURCE dns_server.c
SOURCE errno.c
SOURCE getopt.c
SOURCE hmac_md5.c
SOURCE hmac_sha1.c
SOURCE http_client.c
SOURCE md5.c
SOURCE resolver.c
SOURCE pcap.c
SOURCE resolver_wrap.cpp
SOURCE scanner.c
SOURCE sha1.c
SOURCE srv_resolver.c
SOURCE string.c
SOURCE stun_simple.c
SOURCE stun_simple_client.c
SOURCE xml.c
SOURCE xml_wrap.cpp
//
// Header files
@ -56,6 +65,7 @@ SOURCE xml.c
//DOCUMENT pjlib-util\\getopt.h
//DOCUMENT pjlib-util\\hmac_md5.h
//DOCUMENT pjlib-util\hmac_sha1.h
//DOCUMENT pjlib-util\http_client.h
//DOCUMENT pjlib-util\md5.h
//DOCUMENT pjlib-util\resolver.h
//DOCUMENT pjlib-util\scanner.h

View File

@ -20,27 +20,42 @@ TARGETTYPE lib
SOURCEPATH ..\pjmedia\src\pjmedia
//OPTION CW -lang c++
//
// GCCE optimization setting
//
OPTION GCCE -O2 -fno-unit-at-a-time
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
//
// Platform independent source
//
SOURCE alaw_ulaw.c
SOURCE alaw_ulaw_table.c
SOURCE avi_player.c
SOURCE bidirectional.c
SOURCE clock_thread.c
SOURCE codec.c
SOURCE conf_switch.c
SOURCE conference.c
SOURCE converter.c
SOURCE converter_libswscale.c
SOURCE delaybuf.c
SOURCE echo_common.c
SOURCE echo_port.c
SOURCE echo_suppress.c
SOURCE endpoint.c
SOURCE errno.c
SOURCE delaybuf.c
SOURCE event.c
SOURCE format.c
SOURCE g711.c
SOURCE jbuf.c
SOURCE master_port.c
@ -52,20 +67,45 @@ SOURCE port.c
SOURCE resample_port.c
SOURCE resample_resample.c
SOURCE rtcp.c
SOURCE rtcp_xr.c
SOURCE rtp.c
//SDP files are in pjsdp.mmp: sdp.c, sdp_cmp.c, sdp_neg.c
SOURCE session.c
//SOURCE session.c // deprecated
SOURCE silencedet.c
SOURCE sound_port.c
SOURCE splitcomb.c
SOURCE stereo_port.c
SOURCE stream.c
SOURCE stream_common.c
SOURCE stream_info.c
SOURCE tonegen.c
SOURCE transport_adapter_sample.c
SOURCE transport_ice.c
SOURCE transport_udp.c
SOURCE transport_srtp.c
SOURCE types.c
SOURCE vid_codec.c
SOURCE vid_codec_util.c
SOURCE vid_port.c
SOURCE vid_stream.c
SOURCE vid_stream_info.c
SOURCE vid_tee.c
SOURCE wav_player.c
SOURCE wav_playlist.c
SOURCE wav_writer.c
SOURCE wave.c
SOURCE wsola.c
//
// pjmedia-codec common files
//
SOURCEPATH ..\pjmedia\src\pjmedia-codec
SOURCE audio_codecs.c
SOURCE amr_sdp_match.c
SOURCE g7221_sdp_match.c
SOURCE h263_packetizer.c
SOURCE h264_packetizer.c
//
// Symbian specific
@ -84,6 +124,10 @@ SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjlib-util\include
SYSTEMINCLUDE ..\pjnath\include
SYSTEMINCLUDE ..\third_party\srtp\include
SYSTEMINCLUDE ..\third_party\srtp\crypto\include
SYSTEMINCLUDE ..\third_party\build\srtp
SYSTEMINCLUDE ..
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc

View File

@ -0,0 +1,33 @@
TARGET pjmedia_audiodev.lib
TARGETTYPE lib
SOURCEPATH ..\pjmedia\src\pjmedia-audiodev
//
// GCCE optimization setting
//
//OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
SOURCE audiodev.c
SOURCE errno.c
SOURCE symb_aps_dev.cpp
SOURCE symb_mda_dev.cpp
SOURCE symb_vas_dev.cpp
SOURCE null_dev.c
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjlib-util\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include\mmf\server
SYSTEMINCLUDE \epoc32\include\mmf\common
SYSTEMINCLUDE \epoc32\include\mda\common
SYSTEMINCLUDE \epoc32\include\mmf\plugin

View File

@ -17,15 +17,13 @@ TARGETTYPE lib
#endif
OPTION ARMCC --gnu
SOURCEPATH ..\pjnath\src\pjnath
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
//
// PJNATH files
//
@ -37,7 +35,10 @@ SOURCE stun_auth.c
SOURCE stun_msg.c
SOURCE stun_msg_dump.c
SOURCE stun_session.c
SOURCE stun_sock.c
SOURCE stun_transaction.c
SOURCE turn_session.c
SOURCE turn_sock.c
//
// Include files

View File

@ -19,18 +19,20 @@ TARGETTYPE lib
SOURCEPATH ..\pjmedia\src\pjmedia
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
//
// Platform independent source
//
SOURCE errno.c
SOURCE sdp.c
SOURCE sdp_wrap.cpp
SOURCE sdp_cmp.c
SOURCE sdp_neg.c

View File

@ -25,33 +25,38 @@ SOURCEPATH ..\pjsip\src\pjsip
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
// PJSIP-CORE files
//SOURCE sip_auth_aka.c
SOURCE sip_auth_client.c
SOURCE sip_auth_msg.c
SOURCE sip_auth_parser.c
SOURCE sip_auth_parser_wrap.cpp
SOURCE sip_auth_server.c
SOURCE sip_dialog.c
SOURCE sip_endpoint.c
SOURCE sip_config.c
SOURCE sip_dialog_wrap.cpp
SOURCE sip_endpoint_wrap.cpp
SOURCE sip_errno.c
SOURCE sip_msg.c
SOURCE sip_parser.c
SOURCE sip_multipart.c
SOURCE sip_parser_wrap.cpp
SOURCE sip_resolve.c
SOURCE sip_tel_uri.c
SOURCE sip_tel_uri_wrap.cpp
SOURCE sip_transaction.c
SOURCE sip_transport.c
SOURCE sip_transport_wrap.cpp
SOURCE sip_transport_loop.c
SOURCE sip_transport_tcp.c
SOURCE sip_transport_udp.c
SOURCE sip_transport_tls.c
SOURCE sip_ua_layer.c
SOURCE sip_uri.c
SOURCE sip_util.c
SOURCE sip_util_proxy.c
SOURCE sip_util_wrap.cpp
SOURCE sip_util_proxy_wrap.cpp
SOURCE sip_util_statefull.c
SYSTEMINCLUDE ..\pjlib\include

View File

@ -25,10 +25,11 @@ SOURCEPATH ..\pjsip\src\pjsip-simple
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
// PJSIP-SIMPLE files
@ -36,6 +37,7 @@ SOURCE errno.c
SOURCE evsub.c
SOURCE evsub_msg.c
SOURCE iscomposing.c
SOURCE mwi.c
SOURCE pidf.c
SOURCE presence.c
SOURCE presence_body.c

View File

@ -25,7 +25,11 @@ SOURCEPATH ..\pjsip\src\pjsip-ua
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
//OPTION CW -lang c++
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
// PJSIP-UA files
@ -35,6 +39,7 @@ SOURCE sip_reg.c
SOURCE sip_replaces.c
SOURCE sip_xfer.c
SOURCE sip_100rel.c
SOURCE sip_timer.c
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjlib-util\include

View File

@ -2,15 +2,13 @@ TARGET pjstun_client.exe
TARGETTYPE exe
UID 0x0 0xA000000A
OPTION ARMCC --gnu
SOURCEPATH ..\pjnath\src\pjstun-client
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
OPTION CW -lang c++
OPTION ARMCC --cpp
OPTION GCC -x c++
// PJSTUN-CLIENT files
SOURCE client_main.c

View File

@ -25,16 +25,23 @@ SOURCEPATH ..\pjsip\src\pjsua-lib
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
// OPTION CW -lang c++
// Must compile as C++, otherwise exception would not work
OPTION CW -lang c++
OPTION ARMCC --cpp --gnu
OPTION GCC -x c++
OPTION GCCE -x c++
// PJLIB-UTIL files
SOURCE pjsua_acc.c
SOURCE pjsua_aud.c
SOURCE pjsua_call.c
SOURCE pjsua_core.c
SOURCE pjsua_dump.c
SOURCE pjsua_im.c
SOURCE pjsua_media.c
SOURCE pjsua_pres.c
SOURCE pjsua_vid.c
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjlib-util\include

View File

@ -24,17 +24,24 @@ TARGETTYPE lib
SOURCEPATH ..\pjmedia\src\pjmedia
OPTION CW -lang c++
OPTION GCCE -O2 -fno-unit-at-a-time
OPTION ARMCC --gnu
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
SOURCE nullsound.c
SOURCE symbian_sound.cpp
SOURCE symbian_sound_aps.cpp
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include\mmf\server
SYSTEMINCLUDE \epoc32\include\mmf\common
SYSTEMINCLUDE \epoc32\include\mda\common
SYSTEMINCLUDE \epoc32\include\mmf\plugin

View File

@ -1,59 +0,0 @@
TARGET symbian_ua.exe
TARGETTYPE exe
UID 0x0 0xA000000D
SOURCEPATH ..\pjsip-apps\src\symbian_ua
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
#if defined(PJ_BUILD_DLL)
MACRO PJ_DLL=1
#endif
// Source files
SOURCE ua.cpp
SOURCE main_symbian.cpp
DOCUMENT ua.h
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjlib-util\include
SYSTEMINCLUDE ..\pjnath\include
SYSTEMINCLUDE ..\pjmedia\include
SYSTEMINCLUDE ..\pjsip\include
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc
#if defined(PJ_BUILD_DLL)
LIBRARY pjsua_lib.lib pjsip_ua.lib
LIBRARY pjsip_simple.lib pjsip.lib pjsdp.lib pjmedia.lib
LIBRARY pjnath.lib pjlib_util.lib pjlib.lib
LIBRARY symbian_audio.lib
#else
STATICLIBRARY pjsua_lib.lib pjsip_ua.lib
STATICLIBRARY pjsip_simple.lib pjsip.lib pjsdp.lib pjmedia.lib
STATICLIBRARY pjnath.lib pjlib_util.lib pjlib.lib
STATICLIBRARY symbian_audio.lib
#endif
#ifdef WINSCW
STATICLIBRARY eexe.lib ecrt0.lib
#endif
LIBRARY esock.lib insock.lib charconv.lib euser.lib estlib.lib
LIBRARY mediaclientaudiostream.lib
LIBRARY mediaclientaudioinputstream.lib
CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment
START RESOURCE symbian_ua_reg.rss
TARGETPATH \private\10003a3f\apps
END
// The default 8KB seems to be insufficient with all bells and
// whistles turned on
EPOCSTACKSIZE 12288

View File

@ -1,18 +0,0 @@
; symbian_ua.pkg
; Languages
&EN
; Header
#{"symbian_ua"},(0xA000000D), 0, 1, 1
; Platform compatibility
[0x101F7961], *, *, *,{"Series60ProductID"}
; vendor
%{"PJSIP"}
:"PJSIP"
; Target
"C:\Symbian\9.1\S60_3rd_MR\epoc32\release\gcce\UDEB\symbian_ua.exe"-"!:\sys\bin\symbian_ua.exe"
"C:\Symbian\9.1\S60_3rd_MR\epoc32\data\z\private\10003a3f\apps\symbian_ua_reg.rSC"-"!:\private\10003a3f\import\apps\symbian_ua_reg.rSC"

View File

@ -1,18 +0,0 @@
; symbian_ua.pkg
; Languages
&EN
; Header
#{"symbian_ua"},(0xA000000D), 0, 1, 1
; Platform compatibility
[0x101F7961], *, *, *,{"Series60ProductID"}
; vendor
%{"PJSIP"}
:"PJSIP"
; Target
"C:\Symbian\9.1\S60_3rd_MR\epoc32\release\gcce\UREL\symbian_ua.exe"-"!:\sys\bin\symbian_ua.exe"
"C:\Symbian\9.1\S60_3rd_MR\epoc32\data\z\private\10003a3f\apps\symbian_ua_reg.rSC"-"!:\private\10003a3f\import\apps\symbian_ua_reg.rSC"

View File

@ -1,46 +1,51 @@
TARGET symsndtest.exe
TARGETTYPE exe
UID 0x0 0xA000000E
#define SND_USE_APS 0
#define SND_USE_VAS 0
SOURCEPATH ..\pjsip-apps\src\symsndtest
TARGET symsndtest.exe
TARGETTYPE exe
UID 0x0 0xA000000E
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
OPTION ARMCC --gnu
#if defined(PJ_BUILD_DLL)
MACRO PJ_DLL=1
#endif
SOURCEPATH ..\pjsip-apps\src\symsndtest
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
// Test files
SOURCE app_main.cpp
SOURCE main_symbian.cpp
SOURCE app_main.cpp
SOURCE main_symbian.cpp
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjmedia\include
START RESOURCE symsndtest_reg.rss
TARGETPATH \private\10003a3f\apps
END
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE ..\pjlib\include
SYSTEMINCLUDE ..\pjmedia\include
LIBRARY charconv.lib euser.lib estlib.lib
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\libc
#if defined(PJ_BUILD_DLL)
LIBRARY symbian_audio.lib pjlib.lib
LIBRARY charconv.lib euser.lib estlib.lib
LIBRARY esock.lib insock.lib
STATICLIBRARY pjmedia_audiodev.lib
STATICLIBRARY pjmedia.lib
STATICLIBRARY pjlib.lib
STATICLIBRARY libresample.lib
#if SND_USE_APS
LIBRARY APSSession2.lib
CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment MultimediaDD
#elif SND_USE_VAS
LIBRARY VoIPAudioIntfc.lib
CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment MultimediaDD
#else
STATICLIBRARY symbian_audio.lib pjlib.lib
LIBRARY mediaclientaudiostream.lib
LIBRARY mediaclientaudioinputstream.lib
CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment
#endif
LIBRARY esock.lib insock.lib
LIBRARY mediaclientaudiostream.lib
LIBRARY mediaclientaudioinputstream.lib
#ifdef WINSCW
STATICLIBRARY eexe.lib ecrt0.lib
#endif
CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment
START RESOURCE symsndtest_reg.rss
TARGETPATH \private\10003a3f\apps
END

View File

@ -14,6 +14,6 @@
:"PJSIP"
; Target
"C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\gcce\UDEB\symsndtest.exe"-"!:\sys\bin\symsndtest.exe"
"C:\Symbian\9.1\S60_3rd_MR\Epoc32\data\z\private\10003a3f\apps\symsndtest_reg.rSC"-"!:\private\10003a3f\import\apps\symsndtest_reg.rSC"
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\symsndtest.exe"-"!:\sys\bin\symsndtest.exe"
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\symsndtest_reg.rSC"-"!:\private\10003a3f\import\apps\symsndtest_reg.rSC"

22
build/cc-auto.mak.in Normal file
View File

@ -0,0 +1,22 @@
export CC = @CC@
export CXX = @CXX@
export AR = @AR@
export AR_FLAGS = @AR_FLAGS@
export LD = @LD@
export LDOUT = -o
export RANLIB = @RANLIB@
export OBJEXT := .@OBJEXT@
export LIBEXT := .@LIBEXT@
export LIBEXT2 := @LIBEXT2@
export CC_OUT := @CC_OUT@
export CC_INC := @CC_INC@
export CC_DEF := @CC_DEF@
export CC_OPTIMIZE := @CC_OPTIMIZE@
export CC_LIB := -l
export CC_SOURCES :=
export CC_CFLAGS := @CC_CFLAGS@
export CC_LDFLAGS :=

View File

@ -16,6 +16,15 @@ include $(PJDIR)/build/cc-$(CC_NAME).mak
#
-include cc-$(CC_NAME).mak
#
# Include auto configured compiler specification.
# This will override the compiler settings above.
# Currently this is made OPTIONAL, to prevent people
# from getting errors because they don't re-run ./configure
# after downloading new PJSIP.
#
-include $(PJDIR)/build/cc-auto.mak
#
# Include global machine specific definitions
#

View File

@ -3,7 +3,7 @@ export HOST_RM := rm -f @@
export HOST_RMR := rm -rf @@
export HOST_RMDIR := rm -rf @@
export HOST_MKDIR := mkdir -p @@
export HOST_EXE :=
export HOST_EXE := $(HOST_EXE)
export HOST_PSEP := /
export HOST_SOURCES :=

View File

@ -1,43 +0,0 @@
include $(KERNEL_DIR)/.config
#
# Basic kernel compilation flags.
#
export OS_CFLAGS := $(CC_DEF)PJ_LINUX_KERNEL=1 -D__KERNEL__ \
-I$(KERNEL_DIR)/include -iwithprefix include \
-nostdinc -msoft-float
#
# Additional kernel compilation flags are taken from the kernel Makefile
# itself.
#
KERNEL_CFLAGS := \
$(shell cd $(KERNEL_DIR) ; \
make script SCRIPT='@echo $$(CFLAGS) $$(CFLAGS_MODULE)' $(KERNEL_ARCH))
export OS_CFLAGS += $(KERNEL_CFLAGS)
# -DMODULE -I$(KERNEL_DIR)/include -nostdinc \
# -Wstrict-prototypes \
# -Wno-trigraphs -fno-strict-aliasing -fno-common \
# -msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2\
# -fno-builtin-puts -mpreferred-stack-boundary=2 \
# -fno-unit-at-a-time -march=i686 -mregparm=3 \
# -iwithprefix include
#export OS_CFLAGS += -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH=\"i386\" \
# -D_LARGEFILE64_SOURCE -I$(KERNEL_DIR)/arch/um/include \
# -Derrno=kernel_errno \
# -I$(KERNEL_DIR)/arch/um/kernel/tt/include \
# -I$(KERNEL_DIR)/arch/um/kernel/skas/include \
export OS_CXXFLAGS :=
export OS_LDFLAGS :=
export OS_SOURCES :=

View File

@ -6,12 +6,24 @@ BINDIR = ../bin
endif
#
# The full path of output lib file (e.g. ../lib/libapp.a).
# The name(s) of output lib file(s) (e.g. libapp.a).
#
LIB = $($(APP)_LIB)
LIB := $($(APP)_LIB)
SHLIB = $($(APP)_SHLIB)
SONAME = $($(APP)_SONAME)
ifeq ($(SHLIB_SUFFIX),so)
SHLIB_OPT := -shared -Wl,-soname,$(SHLIB)
else ifeq ($(SHLIB_SUFFIX),dylib)
SHLIB_OPT := -dynamiclib -undefined dynamic_lookup -flat_namespace
else ifeq ($(SHLIB_SUFFIX),dll)
SHLIB_OPT := -shared -Wl,-soname,$(SHLIB)
else
SHLIB_OPT :=
endif
#
# The full path of output executable file (e.g. ../bin/app.exe).
# The name of output executable file (e.g. app.exe).
#
EXE = $($(APP)_EXE)
@ -39,13 +51,15 @@ OBJDIRS := $(sort $(dir $(OBJS)))
#
# FULL_SRCS is ../src/app/file1.c ../src/app/file1.S
#
FULL_SRCS = $(foreach file, $($(APP)_OBJS), $(SRCDIR)/$(basename $(file)).c $(SRCDIR)/$(basename $(file)).cpp $(SRCDIR)/$(basename $(file)).S)
FULL_SRCS = $(foreach file, $($(APP)_OBJS), $(SRCDIR)/$(basename $(file)).m $(SRCDIR)/$(basename $(file)).c $(SRCDIR)/$(basename $(file)).cpp $(SRCDIR)/$(basename $(file)).cc $(SRCDIR)/$(basename $(file)).S)
#
# When generating dependency (gcc -MM), ideally we use only either
# CFLAGS or CXXFLAGS (not both). But I just couldn't make if/ifeq to work.
#
DEPFLAGS = $($(APP)_CXXFLAGS) $($(APP)_CFLAGS)
#DEPFLAGS = $($(APP)_CXXFLAGS) $($(APP)_CFLAGS)
DEPCFLAGS = $($(APP)_CFLAGS)
DEPCXXFLAGS = $($(APP)_CXXFLAGS)
# Dependency file
DEP_FILE := .$(app)-$(TARGET_NAME).depend
@ -64,28 +78,58 @@ print_common:
@echo $(APP)_CFLAGS=$($(APP)_CFLAGS)
@echo $(APP)_CXXFLAGS=$($(APP)_CXXFLAGS)
@echo $(APP)_LDFLAGS=$($(APP)_LDFLAGS)
@echo DEPFLAGS=$(DEPFLAGS)
# @echo DEPFLAGS=$(DEPFLAGS)
@echo CC=$(CC)
@echo AR=$(AR)
@echo AR_FLAGS=$(AR_FLAGS)
@echo RANLIB=$(RANLIB)
print_bin: print_common
@echo EXE=$(EXE)
@echo EXE=$(subst /,$(HOST_PSEP),$(BINDIR)/$(EXE))
@echo BINDIR=$(BINDIR)
print_lib: print_common
@echo LIB=$(LIB)
ifneq ($(LIB),)
@echo LIB=$(subst /,$(HOST_PSEP),$(LIBDIR)/$(LIB))
endif
ifneq ($(SHLIB),)
@echo SHLIB=$(subst /,$(HOST_PSEP),$(LIBDIR)/$(SHLIB))
endif
ifneq ($(SONAME),)
@echo SONAME=$(subst /,$(HOST_PSEP),$(LIBDIR)/$(SONAME))
endif
@echo LIBDIR=$(LIBDIR)
$(LIB): $(LIBDIR) $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)
$(AR) $(LIB) $(OBJS)
$(RANLIB) $(LIB)
ifneq ($(LIB),)
$(subst /,$(HOST_PSEP),$(LIBDIR)/$(LIB)): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)
if test ! -d $(LIBDIR); then $(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)),$(HOST_MKDIR)); fi
$(AR) $(AR_FLAGS) $@ $(OBJS)
$(RANLIB) $@
endif
$(EXE): $(BINDIR) $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)
$(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$(EXE)) \
ifneq ($(SHLIB),)
$(subst /,$(HOST_PSEP),$(LIBDIR)/$(SHLIB)): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)
if test ! -d $(LIBDIR); then $(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)),$(HOST_MKDIR)); fi
$(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$(OBJS)) $($(APP)_LDFLAGS) $(SHLIB_OPT)
endif
ifneq ($(SONAME),)
$(subst /,$(HOST_PSEP),$(LIBDIR)/$(SONAME)): $(subst /,$(HOST_PSEP),$(LIBDIR)/$(SHLIB))
ln -sf $(SHLIB) $@
endif
ifneq ($(EXE),)
$(subst /,$(HOST_PSEP),$(BINDIR)/$(EXE)): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)
if test ! -d $(BINDIR); then $(subst @@,$(subst /,$(HOST_PSEP),$(BINDIR)),$(HOST_MKDIR)); fi
$(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$(BINDIR)/$(EXE)) \
$(subst /,$(HOST_PSEP),$(OBJS)) $($(APP)_LDFLAGS)
endif
$(OBJDIR)/$(app).o: $(OBJDIRS) $(OBJS)
$(CROSS_COMPILE)ld -r -o $@ $(OBJS)
$(OBJDIR)/$(app).ko: $(OBJDIR)/$(app).o
$(OBJDIR)/$(app).ko: $(OBJDIR)/$(app).o | $(OBJDIRS)
@echo Creating kbuild Makefile...
@echo "# Our module name:" > $(OBJDIR)/Makefile
@echo 'obj-m += $(app).o' >> $(OBJDIR)/Makefile
@ -105,34 +149,49 @@ $(OBJDIR)/$(app).ko: $(OBJDIR)/$(app).o
@echo all: >> $(OBJDIR)/Makefile
@echo -e "\tmake -C $(KERNEL_DIR) M=`pwd`/$(OBJDIR) modules $(KERNEL_ARCH)" >> $(OBJDIR)/Makefile
@echo Invoking kbuild...
make -C $(OBJDIR)
$(MAKE) -C $(OBJDIR)
../lib/$(app).ko: $(LIB) $(OBJDIR)/$(app).ko
cp $(OBJDIR)/$(app).ko ../lib
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.c
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.m | $(OBJDIRS)
$(CC) $($(APP)_CFLAGS) \
$(CC_OUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$<)
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.S
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.c | $(OBJDIRS)
$(CC) $($(APP)_CFLAGS) \
$(CC_OUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$<)
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.cpp
$(CC) $($(APP)_CXXFLAGS) \
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.S | $(OBJDIRS)
$(CC) $($(APP)_CFLAGS) \
$(CC_OUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$<)
$(OBJDIR)/dshowclasses.o: $(SRCDIR)/dshowclasses.cpp | $(OBJDIRS)
$(CXX) $($(APP)_CXXFLAGS) -I$(SRCDIR)/../../../third_party/BaseClasses -fpermissive \
$(CC_OUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$<)
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.cpp | $(OBJDIRS)
$(CXX) $($(APP)_CXXFLAGS) \
$(CC_OUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$<)
$(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.cc | $(OBJDIRS)
$(CXX) $($(APP)_CXXFLAGS) \
$(CC_OUT)$(subst /,$(HOST_PSEP),$@) \
$(subst /,$(HOST_PSEP),$<)
$(OBJDIRS):
$(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))
$(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))
$(LIBDIR):
$(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)),$(HOST_MKDIR))
$(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))
$(BINDIR):
$(subst @@,$(subst /,$(HOST_PSEP),$(BINDIR)),$(HOST_MKDIR))
$(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))
clean:
$(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)/*),$(HOST_RMR))
@ -147,7 +206,18 @@ gcov-report:
done
realclean: clean
$(subst @@,$(subst /,$(HOST_PSEP),$(LIB)) $(subst /,$(HOST_PSEP),$(EXE)),$(HOST_RM))
ifneq ($(LIB),)
$(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)/$(LIB)),$(HOST_RM))
endif
ifneq ($(SHLIB),)
$(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)/$(SHLIB)),$(HOST_RM))
endif
ifneq ($(SONAME),)
$(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)/$(SONAME)),$(HOST_RM))
endif
ifneq ($(EXE),)
$(subst @@,$(subst /,$(HOST_PSEP),$(BINDIR)/$(EXE)),$(HOST_RM))
endif
$(subst @@,$(DEP_FILE),$(HOST_RM))
ifeq ($(OS_NAME),linux-kernel)
rm -f ../lib/$(app).ko
@ -158,7 +228,12 @@ depend:
for F in $(FULL_SRCS); do \
if test -f $$F; then \
echo "$(OBJDIR)/" | tr -d '\n' >> $(DEP_FILE); \
if $(CC) -M $(DEPFLAGS) $$F | sed '/^#/d' >> $(DEP_FILE); then \
if echo $$F | grep -q "\.c[c|pp]"; then \
dep="$(CXX) -M $(DEPCXXFLAGS) $$F"; \
else \
dep="$(CC) -M $(DEPCFLAGS) $$F"; \
fi; \
if eval $$dep | sed '/^#/d' >> $(DEP_FILE); then \
true; \
else \
echo 'err:' >> $(DEP_FILE); \

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup>
<!--
- Set the API Family here:
* WinDesktop (Desktop)
* UWP (UWP)
* WinPhone8 (Windows Phone 8)
-->
<API_Family>WinDesktop</API_Family>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros">
<TargetCPU>ARMv7</TargetCPU>
</PropertyGroup>
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineARM</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="TargetCPU">
<Value>$(TargetCPU)</Value>
</BuildMacro>
</ItemGroup>
</Project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-arm-common-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup />
<ItemGroup />
</Project>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros">
<TargetCPU>ARM64</TargetCPU>
</PropertyGroup>
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineARM64</TargetMachine>
</Link>
<Lib>
<AdditionalOptions>/ignore:4221</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="TargetCPU">
<Value>$(TargetCPU)</Value>
</BuildMacro>
</ItemGroup>
</Project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-arm64-common-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup />
<ItemGroup />
</Project>

View File

@ -0,0 +1,9 @@
<!--This will define targets to override the default ones useful to skipped the target of specific project-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Build">
<Message Text="Skipped project build"></Message>
</Target>
<Target Name="Clean">
<Message Text="Skipped project clean"></Message>
</Target>
</Project>

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-api-def.props" />
</ImportGroup>
<Choose>
<When Condition="'$(Platform)'=='ARM' ">
<PropertyGroup>
<API_Family Condition="'$(API_Family)'=='WinDesktop'">UWP</API_Family>
</PropertyGroup>
</When>
<When Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
<PropertyGroup>
<API_Family Condition="'$(API_Family)'=='WinPhone8'">UWP</API_Family>
</PropertyGroup>
</When>
</Choose>
<PropertyGroup>
<API_Family Condition="'$(API_Family)'==''">WinDesktop</API_Family>
<PreprocessorDef></PreprocessorDef>
<DefaultToolset>v140</DefaultToolset>
</PropertyGroup>
<Choose>
<When Condition="'$(API_Family)'=='WinDesktop'">
<PropertyGroup>
<BuildToolset>v140</BuildToolset>
<PreprocessorDef Condition="'$(Platform)'=='Win32'">WIN32;PJ_WIN32=1;PJ_M_I386=1;</PreprocessorDef>
<PreprocessorDef Condition="'$(Platform)'=='x64'">WIN64;PJ_WIN64=1;PJ_M_X86_64=1;</PreprocessorDef>
<PreprocessorDef Condition="'$(Platform)'=='ARM64'">PJ_M_ARM64=1;</PreprocessorDef>
</PropertyGroup>
</When>
<When Condition="'$(API_Family)'=='UWP'">
<PropertyGroup>
<BuildToolset>v140</BuildToolset>
<PreprocessorDef>PJ_WIN32_UWP;UNICODE;_UNICODE;</PreprocessorDef>
<PreprocessorDef Condition="'$(Platform)'=='ARM'">$(PreprocessorDef);PJ_M_ARMV7=1;</PreprocessorDef>
<PlatformVersion>10.0.10586.0</PlatformVersion>
<MinPlatformVersion>10.0.10240.0</MinPlatformVersion>
<AppTypeRev>10.0</AppTypeRev>
<WindowsTargetPlatformVersion>$(PlatformVersion)</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>$(MinPlatformVersion)</WindowsTargetPlatformMinVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>$(AppTypeRev)</ApplicationTypeRevision>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>$(PlatformVersion)</TargetPlatformVersion>
<TargetPlatformMinVersion>$(MinPlatformVersion)</TargetPlatformMinVersion>
</PropertyGroup>
</When>
<When Condition="'$(API_Family)'=='WinPhone8'">
<PropertyGroup>
<BuildToolset>v110_wp80</BuildToolset>
<PreprocessorDef>PJ_WIN32_WINPHONE8;PJ_M_ARMV7=1;UNICODE;_UNICODE;</PreprocessorDef>
</PropertyGroup>
</When>
</Choose>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>$(PreprocessorDef);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild Condition="'$(API_Family)'=='UWP'">false</MinimalRebuild>
</ClCompile>
</ItemDefinitionGroup>
</Project>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros">
<VSVer>14</VSVer>
</PropertyGroup>
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
<OutDir Condition="'$(TargetExt)'=='.lib'">..\lib\</OutDir>
<OutDir Condition="'$(TargetExt)'=='.exe'">..\bin\</OutDir>
<OutDir Condition="'$(TargetExt)'=='.dll'">..\lib\</OutDir>
<TargetName>$(ProjectName)-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration)</TargetName>
<IntDir>.\output\$(ProjectName)-$(TargetCPU)-$(PlatformName)-vc$(VSVer)-$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<BrowseInformation>true</BrowseInformation>
<WarningLevel>Level4</WarningLevel>
<CompileAs>Default</CompileAs>
<CompileAsWinRT>false</CompileAsWinRT>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<SDLCheck>false</SDLCheck>
</ClCompile>
<Lib>
<OutputFile>..\lib\$(ProjectName)-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile>
</Lib>
<Link>
<OutputFile Condition="'$(TargetExt)'=='.exe'">..\bin\$(ProjectName)-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).exe</OutputFile>
<GenerateWindowsMetadata Condition="'$(TargetExt)'=='.lib'">false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="VSVer">
<Value>$(VSVer)</Value>
</BuildMacro>
</ItemGroup>
</Project>

View File

@ -0,0 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="CheckAPI">
<Message Condition="'$(API_Family)'!='$(PROJ_Target)'" Text="Skipped project build"></Message>
<CallTarget Condition="'$(API_Family)'=='$(PROJ_Target)'" Targets="Build"/>
</Target>
</Project>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-common-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-debug-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-debug-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-common-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-release-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-release-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros">
<TargetCPU>i386</TargetCPU>
</PropertyGroup>
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<Lib>
<AdditionalOptions>/ignore:4221</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="TargetCPU">
<Value>$(TargetCPU)</Value>
</BuildMacro>
</ItemGroup>
</Project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-win32-common-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup />
<ItemGroup />
</Project>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros">
<TargetCPU>x86_64</TargetCPU>
</PropertyGroup>
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<Lib>
<AdditionalOptions>/ignore:4221</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="TargetCPU">
<Value>$(TargetCPU)</Value>
</BuildMacro>
</ItemGroup>
</Project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="pjproject-vs14-win64-common-defaults.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup />
<ItemGroup />
</Project>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-common-defaults"
OutputDirectory=".\output\$(ProjectName)-$(TargetCPU)-$(PlatformName)-vc$(VSVer)-$(ConfigurationName)"
IntermediateDirectory="$(OutDir)"
>
<Tool
Name="VCCLCompilerTool"
BrowseInformation="1"
WarningLevel="4"
CompileAs="0"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="..\lib\$(ProjectName)-$(TargetCPU)-$(PlatformName)-vc$(VSVer)-$(ConfigurationName).lib"
/>
<Tool
Name="VCLinkerTool"
OutputFile="..\bin\$(ProjectName)-$(TargetCPU)-$(PlatformName)-vc$(VSVer)-$(ConfigurationName).exe"
/>
<UserMacro
Name="VSVer"
Value="8"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-debug-defaults"
InheritedPropertySheets=".\pjproject-vs8-common-defaults.vsprops"
>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="_DEBUG;DEBUG"
DebugInformationFormat="4"
/>
<Tool
Name="VCLinkerTool"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(IntDir)\$(TargetName).pdb"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-debug-dynamic-defaults"
InheritedPropertySheets=".\pjproject-vs8-debug-defaults.vsprops"
>
<Tool
Name="VCCLCompilerTool"
RuntimeLibrary="3"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-debug-static-defaults"
InheritedPropertySheets=".\pjproject-vs8-debug-defaults.vsprops"
>
<Tool
Name="VCCLCompilerTool"
RuntimeLibrary="1"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-release-defaults"
InheritedPropertySheets=".\pjproject-vs8-common-defaults.vsprops"
>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions="NDEBUG"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-release-dynamic-defaults"
InheritedPropertySheets=".\pjproject-vs8-release-defaults.vsprops"
>
<Tool
Name="VCCLCompilerTool"
RuntimeLibrary="2"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-release-static-defaults"
InheritedPropertySheets=".\pjproject-vs8-release-defaults.vsprops"
>
<Tool
Name="VCCLCompilerTool"
RuntimeLibrary="0"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-win32-common-defaults"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;PJ_WIN32=1;PJ_M_I386=1;"
/>
<Tool
Name="VCLinkerTool"
SubSystem="1"
TargetMachine="1"
/>
<UserMacro
Name="TargetCPU"
Value="i386"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-win32-release-defaults"
InheritedPropertySheets=".\pjproject-vs8-win32-common-defaults.vsprops"
>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-win64-common-defaults"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN64;PJ_WIN64=1;PJ_M_X86_64=1;"
/>
<Tool
Name="VCLinkerTool"
SubSystem="1"
TargetMachine="17"
/>
<UserMacro
Name="TargetCPU"
Value="x86_64"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-win64-release-defaults"
InheritedPropertySheets=".\pjproject-vs8-win64-common-defaults.vsprops"
>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-wm2003-common-defaults"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;$(ARCHFAM);$(_ARCHFAM_)"
DebugInformationFormat="3"
DisableSpecificWarnings="4214;4201"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="secchk.lib ccrtrtti.lib"
SubSystem="9"
StackReserveSize="65536"
StackCommitSize="4096"
EntryPointSymbol="WinMainCRTStartup"
TargetMachine="3"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;$(ARCHFAM);$(_ARCHFAM_)"
/>
<UserMacro
Name="TargetCPU"
Value="armv4"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-wm2003-release-defaults"
InheritedPropertySheets=".\pjproject-vs8-wm2003-common-defaults.vsprops"
>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-wm5-common-defaults"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;$(ARCHFAM);$(_ARCHFAM_)"
DebugInformationFormat="3"
DisableSpecificWarnings="4214;4201"
/>
<Tool
Name="VCLinkerTool"
SubSystem="9"
StackReserveSize="65536"
StackCommitSize="4096"
EntryPointSymbol="WinMainCRTStartup"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;$(ARCHFAM);$(_ARCHFAM_)"
/>
<UserMacro
Name="TargetCPU"
Value="armv4i"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-wm5-release-defaults"
InheritedPropertySheets=".\pjproject-vs8-wm5-common-defaults.vsprops"
>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-wm6-common-defaults"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;$(ARCHFAM);$(_ARCHFAM_)"
DebugInformationFormat="3"
DisableSpecificWarnings="4214;4201"
/>
<Tool
Name="VCLinkerTool"
SubSystem="9"
StackReserveSize="65536"
StackCommitSize="4096"
EntryPointSymbol="WinMainCRTStartup"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;$(ARCHFAM);$(_ARCHFAM_)"
/>
<UserMacro
Name="TargetCPU"
Value="armv4i"
/>
</VisualStudioPropertySheet>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="pjproject-vs8-wm6-release-defaults"
InheritedPropertySheets=".\pjproject-vs8-wm6-common-defaults.vsprops"
>
</VisualStudioPropertySheet>

1247
config.guess vendored

File diff suppressed because it is too large Load Diff

407
config.sub vendored
View File

@ -1,9 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012 Free Software Foundation, Inc.
timestamp='2005-04-22'
timestamp='2012-06-17'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@ -20,23 +21,25 @@ timestamp='2005-04-22'
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
# diff and a properly formatted GNU ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
@ -70,7 +73,8 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@ -83,11 +87,11 @@ Try \`$me --help' for more information."
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit 0 ;;
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit 0 ;;
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit 0 ;;
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
@ -99,7 +103,7 @@ while test $# -gt 0 ; do
*local*)
# First pass through any local machine types.
echo $1
exit 0;;
exit ;;
* )
break ;;
@ -118,11 +122,18 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
android-linux)
os=-linux-android
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@ -145,10 +156,13 @@ case $os in
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
-apple | -axis | -knuth | -cray)
-apple | -axis | -knuth | -cray | -microblaze)
os=
basic_machine=$1
;;
-bluegene*)
os=-cnk
;;
-sim | -cisco | -oki | -wec | -winbond)
os=
basic_machine=$1
@ -163,13 +177,17 @@ case $os in
os=-chorusos
basic_machine=$1
;;
-chorusrdb)
os=-chorusrdb
-chorusrdb)
os=-chorusrdb
basic_machine=$1
;;
;;
-hiux*)
os=-hiuxwe2
;;
-sco6)
os=-sco5v6
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco5)
os=-sco3.2v5
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@ -186,6 +204,10 @@ case $os in
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco5v6*)
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco*)
os=-sco3.2v2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@ -203,6 +225,12 @@ case $os in
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-lynx*178)
os=-lynxos178
;;
-lynx*5)
os=-lynxos5
;;
-lynx*)
os=-lynxos
;;
@ -227,26 +255,36 @@ case $basic_machine in
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
| aarch64 | aarch64_be \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
| arc | arm | arm64 | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | armv[67] | armv7s | avr | avr32 \
| be32 | be64 \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fr30 | frv \
| epiphany \
| fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
| le32 | le64 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
| mips64vr | mips64vrel \
| mips64octeon | mips64octeonel \
| mips64orion | mips64orionel \
| mips64r5900 | mips64r5900el \
| mips64vr | mips64vrel \
| mips64vr4100 | mips64vr4100el \
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa64 | mipsisa64el \
@ -255,31 +293,65 @@ case $basic_machine in
| mipsisa64sr71k | mipsisa64sr71kel \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
| moxie \
| mt \
| msp430 \
| nds32 | nds32le | nds32be \
| nios | nios2 \
| ns16k | ns32k \
| openrisc | or32 \
| open8 \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| rl78 | rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b \
| strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu \
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
| we32k \
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
| z8k)
| x86 | xc16x | xstormy16 | xtensa \
| z8k | z80)
basic_machine=$basic_machine-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
c54x)
basic_machine=tic54x-unknown
;;
c55x)
basic_machine=tic55x-unknown
;;
c6x)
basic_machine=tic6x-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
;;
ms1)
basic_machine=mt-unknown
;;
strongarm | thumb | xscale)
basic_machine=arm-unknown
;;
xgate)
basic_machine=$basic_machine-unknown
os=-none
;;
xscaleeb)
basic_machine=armeb-unknown
;;
xscaleel)
basic_machine=armel-unknown
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
@ -295,32 +367,40 @@ case $basic_machine in
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
| aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* \
| arm-* | arm64-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
| be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
| m32r-* | m32rle-* \
| le32-* | le64-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | maxq-* | mcore-* \
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
| mips64vr-* | mips64vrel-* \
| mips64octeon-* | mips64octeonel-* \
| mips64orion-* | mips64orionel-* \
| mips64r5900-* | mips64r5900el-* \
| mips64vr-* | mips64vrel-* \
| mips64vr4100-* | mips64vr4100el-* \
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
| mipsisa64-* | mipsisa64el-* \
@ -329,27 +409,38 @@ case $basic_machine in
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| mt-* \
| msp430-* \
| nds32-* | nds32le-* | nds32be-* \
| nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| open8-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
| romp-* | rs6000-* \
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
| tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile*-* \
| tron-* \
| v850-* | v850e-* | vax-* \
| ubicom32-* \
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
| vax-* \
| we32k-* \
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa-* \
| x86-* | x86_64-* | xc16x-* | xps100-* \
| xstormy16-* | xtensa*-* \
| ymp-* \
| z8k-*)
| z8k-* | z80-*)
;;
# Recognize the basic CPU types without company name, with glob match.
xtensa*)
basic_machine=$basic_machine-unknown
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
@ -367,7 +458,7 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
abacus)
abacus)
basic_machine=abacus-unknown
;;
adobe68k)
@ -413,6 +504,10 @@ case $basic_machine in
basic_machine=m68k-apollo
os=-bsd
;;
aros)
basic_machine=i386-pc
os=-aros
;;
aux)
basic_machine=m68k-apple
os=-aux
@ -421,10 +516,35 @@ case $basic_machine in
basic_machine=ns32k-sequent
os=-dynix
;;
blackfin)
basic_machine=bfin-unknown
os=-linux
;;
blackfin-*)
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
bluegene*)
basic_machine=powerpc-ibm
os=-cnk
;;
c54x-*)
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c55x-*)
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c6x-*)
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c90)
basic_machine=c90-cray
os=-unicos
;;
cegcc)
basic_machine=arm-unknown
os=-cegcc
;;
convex-c1)
basic_machine=c1-convex
os=-bsd
@ -453,8 +573,8 @@ case $basic_machine in
basic_machine=craynv-cray
os=-unicosmp
;;
cr16c)
basic_machine=cr16c-unknown
cr16 | cr16-*)
basic_machine=cr16-unknown
os=-elf
;;
crds | unos)
@ -492,6 +612,10 @@ case $basic_machine in
basic_machine=m88k-motorola
os=-sysv3
;;
dicos)
basic_machine=i686-pc
os=-dicos
;;
djgpp)
basic_machine=i586-pc
os=-msdosdjgpp
@ -607,7 +731,6 @@ case $basic_machine in
i370-ibm* | ibm*)
basic_machine=i370-ibm
;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i*86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
@ -646,6 +769,14 @@ case $basic_machine in
basic_machine=m68k-isi
os=-sysv
;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
;;
m68knommu-*)
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
m88k-omron*)
basic_machine=m88k-omron
;;
@ -657,10 +788,17 @@ case $basic_machine in
basic_machine=ns32k-utek
os=-sysv
;;
microblaze)
basic_machine=microblaze-xilinx
;;
mingw32)
basic_machine=i386-pc
os=-mingw32
;;
mingw32ce)
basic_machine=arm-unknown
os=-mingw32ce
;;
miniframe)
basic_machine=m68000-convergent
;;
@ -686,10 +824,21 @@ case $basic_machine in
basic_machine=i386-pc
os=-msdos
;;
ms1-*)
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
msys)
basic_machine=i386-pc
os=-msys
;;
mvs)
basic_machine=i370-ibm
os=-mvs
;;
nacl)
basic_machine=le32-unknown
os=-nacl
;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
@ -754,6 +903,12 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
neo-tandem)
basic_machine=neo-tandem
;;
nse-tandem)
basic_machine=nse-tandem
;;
nsr-tandem)
basic_machine=nsr-tandem
;;
@ -761,9 +916,8 @@ case $basic_machine in
basic_machine=hppa1.1-oki
os=-proelf
;;
or32 | or32-*)
openrisc | openrisc-*)
basic_machine=or32-unknown
os=-coff
;;
os400)
basic_machine=powerpc-ibm
@ -785,6 +939,14 @@ case $basic_machine in
basic_machine=i860-intel
os=-osf
;;
parisc)
basic_machine=hppa-unknown
os=-linux
;;
parisc-*)
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
pbd)
basic_machine=sparc-tti
;;
@ -794,6 +956,12 @@ case $basic_machine in
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
pc98)
basic_machine=i386-pc
;;
pc98-*)
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
@ -823,9 +991,10 @@ case $basic_machine in
;;
power) basic_machine=power-ibm
;;
ppc) basic_machine=powerpc-unknown
ppc | ppcbe) basic_machine=powerpc-unknown
;;
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
ppc-* | ppcbe-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
@ -850,6 +1019,10 @@ case $basic_machine in
basic_machine=i586-unknown
os=-pw32
;;
rdos)
basic_machine=i386-pc
os=-rdos
;;
rom68k)
basic_machine=m68k-rom68k
os=-coff
@ -876,6 +1049,10 @@ case $basic_machine in
sb1el)
basic_machine=mipsisa64sb1el-unknown
;;
sde)
basic_machine=mipsisa32-sde
os=-elf
;;
sei)
basic_machine=mips-sei
os=-seiux
@ -887,6 +1064,9 @@ case $basic_machine in
basic_machine=sh-hitachi
os=-hms
;;
sh5el)
basic_machine=sh5le-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
@ -908,6 +1088,9 @@ case $basic_machine in
basic_machine=i860-stratus
os=-sysv4
;;
strongarm-* | thumb-*)
basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
sun2)
basic_machine=m68000-sun
;;
@ -964,17 +1147,9 @@ case $basic_machine in
basic_machine=t90-cray
os=-unicos
;;
tic54x | c54x*)
basic_machine=tic54x-unknown
os=-coff
;;
tic55x | c55x*)
basic_machine=tic55x-unknown
os=-coff
;;
tic6x | c6x*)
basic_machine=tic6x-unknown
os=-coff
tile*)
basic_machine=$basic_machine-unknown
os=-linux-gnu
;;
tx39)
basic_machine=mipstx39-unknown
@ -1043,6 +1218,9 @@ case $basic_machine in
xps | xps100)
basic_machine=xps100-honeywell
;;
xscale-* | xscalee[bl]-*)
basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
;;
ymp)
basic_machine=ymp-cray
os=-unicos
@ -1051,6 +1229,10 @@ case $basic_machine in
basic_machine=z8k-unknown
os=-sim
;;
z80-*-coff)
basic_machine=z80-unknown
os=-sim
;;
none)
basic_machine=none-none
os=-none
@ -1089,13 +1271,10 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
sparc | sparcv8 | sparcv9 | sparcv9b)
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
basic_machine=sparc-sun
;;
cydra)
@ -1139,9 +1318,12 @@ esac
if [ x"$os" != x"" ]
then
case $os in
# First match some system type aliases
# that might get confused with valid system types.
# First match some system type aliases
# that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
-auroraux)
os=-auroraux
;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
;;
@ -1162,26 +1344,31 @@ case $os in
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* \
| -aos* | -aros* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
| -bitrig* | -openbsd* | -solidbsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@ -1199,7 +1386,7 @@ case $os in
os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
;;
-mac*)
@ -1220,7 +1407,7 @@ case $os in
-opened*)
os=-openedition
;;
-os400*)
-os400*)
os=-os400
;;
-wince*)
@ -1269,7 +1456,7 @@ case $os in
-sinix*)
os=-sysv4
;;
-tpf*)
-tpf*)
os=-tpf
;;
-triton*)
@ -1311,6 +1498,11 @@ case $os in
-zvmoe)
os=-zvmoe
;;
-dicos*)
os=-dicos
;;
-nacl*)
;;
-none)
;;
*)
@ -1333,6 +1525,12 @@ else
# system, and we'll never get to this point.
case $basic_machine in
score-*)
os=-elf
;;
spu-*)
os=-elf
;;
*-acorn)
os=-riscix1.2
;;
@ -1342,9 +1540,21 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
c4x-* | tic4x-*)
os=-coff
;;
c4x-* | tic4x-*)
os=-coff
;;
hexagon-*)
os=-elf
;;
tic54x-*)
os=-coff
;;
tic55x-*)
os=-coff
;;
tic6x-*)
os=-coff
;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
@ -1363,13 +1573,13 @@ case $basic_machine in
;;
m68000-sun)
os=-sunos3
# This also exists in the configure program, but was not the
# default.
# os=-sunos4
;;
m68*-cisco)
os=-aout
;;
mep-*)
os=-elf
;;
mips*-cisco)
os=-elf
;;
@ -1388,10 +1598,13 @@ case $basic_machine in
*-be)
os=-beos
;;
*-haiku)
os=-haiku
;;
*-ibm)
os=-aix
;;
*-knuth)
*-knuth)
os=-mmixware
;;
*-wec)
@ -1496,7 +1709,7 @@ case $basic_machine in
-sunos*)
vendor=sun
;;
-aix*)
-cnk*|-aix*)
vendor=ibm
;;
-beos*)
@ -1559,7 +1772,7 @@ case $basic_machine in
esac
echo $basic_machine$os
exit 0
exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)

2
configure vendored
View File

@ -1,5 +1,5 @@
#!/bin/sh
./aconfigure $*
./aconfigure "$@"
# Note:
# if you're looking for the old configure script, it has been renamed

387
configure-android Executable file
View File

@ -0,0 +1,387 @@
#!/bin/sh
#
F="configure-android"
IS_USING_LLVM="0"
if test "$*" = "--help" -o "$*" = "-h"; then
echo "$F [--use-ndk-cflags] [OPTIONS]"
echo ""
echo "where:"
echo " --use-ndk-cflags Optional parameter to use the same compilation flags"
echo " as the one used by ndk-build. Android NDK r9 or later"
echo " is required when using this option."
echo " OPTIONS Other options that will be passed directly to"
echo " ./aconfigure script. Run ./aconfigure --help"
echo " for more info."
echo ""
echo "Environment variables:"
echo " ANDROID_NDK_ROOT Specify the directory of Android NDK to use."
echo " APP_PLATFORM Optionally specify the platform level used, e.g."
echo " android-9. By default, configure will use the"
echo " maximum platform level detected."
echo " TARGET_ABI Optionally specify a single target architecture,"
echo " e.g. armeabi-v7a, arm64-v8a, mips, x86. By default, "
echo " the target architecture is arm64-v8a."
echo " IGNORE_CFLAGS Optionally specify compilation flags to be ignored."
echo " Each grepped flag that satisfies the criteria will"
echo " be ignored. Default:"
echo " IGNORE_CFLAGS=\"\-M\|\-f*stack\|\-f*alias\|\-\<g\>\""
echo " Only used when --use-ndk-cflags is specified."
echo ""
exit 0
fi
if test "x${ANDROID_NDK_ROOT}" = "x" || test ! -e ${ANDROID_NDK_ROOT}; then
echo "$F error: ANDROID_NDK_ROOT env var is not specified or invalid"
exit 0
fi
# The BRE version somehow does not work well on MacOSX
#NDK_VER=`sed -n -e 's/.*Pkg.Revision *= *\([0-9]\+\).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
NDK_VER=`sed -n -E 's/^Pkg.Revision *= *([0-9]+).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
if test "x$APP_PLATFORM" = "x"; then
if test -d ${ANDROID_NDK_ROOT}/platforms; then
APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1`
fi
if test "x$APP_PLATFORM" != "x"; then
APP_PLATFORM="android-${APP_PLATFORM}"
else
APP_PLATFORM="latest"
fi
echo "$F: APP_PLATFORM not specified, using ${APP_PLATFORM}"
fi
if test "x$TARGET_ABI" = "x"; then
TARGET_ABI="arm64-v8a"
echo "$F: TARGET_ABI not specified, using ${TARGET_ABI}"
fi
if test "$TARGET_ABI" = "x86_64" || test "$TARGET_ABI" = "mips64"; then
USR_LIB="/usr/lib64"
else
USR_LIB="/usr/lib"
fi
if test "$1" = "--use-ndk-cflags" || [ "${NDK_VER}" -ge "17" ]; then
if test "$1" = "--use-ndk-cflags"; then
shift # don't pass this param to main configure script
fi
ADD_CFLAGS="0"
ADD_CXXFLAGS="0"
ADD_LDFLAGS="0"
ADD_NDK_TOOLCHAIN="0"
ADD_NDK_TARGET="0"
if test "x${IGNORE_CFLAGS}" = "x"; then
IGNORE_CFLAGS="\-M\|\-f*stack\|\-f*alias\|\-\<g\>\|\-DNDEBUG\|\-O"
fi
if test "x${IGNORE_CPPFLAGS}" = "x"; then
IGNORE_CPPFLAGS="\-M\|\-f*stack\|\-f*alias\|\-\<g\>\|\-DNDEBUG\|\-O\|\-std\="
fi
if test -f ${ANDROID_NDK_ROOT}/build/ndk-build; then
NDK_BUILD=${ANDROID_NDK_ROOT}/build/ndk-build
else
NDK_BUILD=${ANDROID_NDK_ROOT}/ndk-build
fi
NDK_OUT=`${NDK_BUILD} -n -C pjsip-apps/src/samples/android_sample APP_PLATFORM=${APP_PLATFORM} APP_ABI=${TARGET_ABI}`
if test ! "${NDK_OUT}"; then
echo "$F error: failed to run ndk-build, check ANDROID_NDK_ROOT env var"
exit 1
fi
#echo "====="
#echo "NDK_OUT : ${NDK_OUT}"
#echo "====="
for i in $NDK_OUT; do
# Parse NDK CXXFLAGS
if test "${ADD_CXXFLAGS}" = "1"; then
if test "$i" = "-o"; then
ADD_CXXFLAGS="0"
continue
fi
if test "$i" = "-c"; then
continue
fi
if test "x`echo $i|grep 'dummy'`" != "x"; then
continue
fi
if test "x`echo $i|grep ${IGNORE_CPPFLAGS}`" != "x"; then
continue
fi
# Check if flag is already in CFLAGS
ISDUP="0"
for j in $NDK_CFLAGS; do
if test "$i" = "$j"; then
ISDUP="1"
break
fi
done
if test "${ISDUP}" = "1"; then
continue
fi
NDK_CXXFLAGS="${NDK_CXXFLAGS} $i"
continue
fi
# Parse NDK CFLAGS
if test "${ADD_CFLAGS}" = "1"; then
if test "$i" = "-c"; then
ADD_CFLAGS="0"
continue
fi
if test "x`echo $i|grep 'dummy'`" != "x"; then
continue
fi
if test "x`echo $i|grep ${IGNORE_CFLAGS}`" = "x"; then
if test "${ADD_NDK_TOOLCHAIN}" = "0" -a "x`echo $i|grep '\-gcc-toolchain'`" != "x"; then
ADD_NDK_TOOLCHAIN="1"
elif test "${ADD_NDK_TARGET}" = "0" -a "x`echo $i|grep '\-target'`" != "x"; then
ADD_NDK_TARGET="1"
elif test "${ADD_NDK_TOOLCHAIN}" = "1"; then
NDK_TOOLCHAIN="$i"
ADD_NDK_TOOLCHAIN="2"
elif test "${ADD_NDK_TARGET}" = "1"; then
NDK_TARGET="$i"
ADD_NDK_TARGET="2"
fi
NDK_CFLAGS="${NDK_CFLAGS} $i"
fi
continue
fi
# Parse NDK LDFLAGS
if test "${ADD_LDFLAGS}" = "1"; then
if test "$i" = "-o"; then
ADD_LDFLAGS="0"
continue
fi
if test "x`echo $i|grep 'dummy'`" != "x"; then
continue
fi
if test "x`echo $i|grep '.so'`" != "x"; then
continue
fi
NDK_LDFLAGS="${NDK_LDFLAGS} $i"
continue
fi
# Find gcc or clang
if test "x${NDK_CC}" = "x"; then
if test "x`echo $i | grep 'gcc'`" != "x" -o "x`echo $i | grep 'clang'`" != "x"; then
NDK_CC=$i
ADD_CFLAGS="1"
if test "x`echo ${NDK_CC} | grep 'clang'`" != "x"; then
IS_USING_LLVM="1"
#echo "---using llvm"
fi
continue
fi
fi
# Find g++ or clang++
if test "x${NDK_CXX}" = "x"; then
if test "x`echo $i | grep 'g++'`" != "x"; then
NDK_CXX=$i
ADD_CXXFLAGS="1"
continue
fi
fi
# Find linking/LDFLAGS
if test "x${NDK_LDFLAGS}" = "x"; then
if test "x`echo $i | grep '\-\<shared\>'`" != "x"; then
ADD_LDFLAGS="1"
continue
fi
fi
# Find ar tool
if test "x${NDK_AR}" = "x" -a "x${NDK_CC}" != "x" -a "x`echo $i|grep '\-\<ar\>'`" != "x"; then
# In some NDKs, e.g: r17c, gcc/clang and ar have different path
#if test "$(dirname \"${NDK_CC}\")" = "$(dirname \"${i}\")"; then
NDK_AR=$i
#echo "--- found AR=${NDK_AR}"
continue
#fi
fi
# Find ranlib tool
if test "x${NDK_RANLIB}" = "x" -a "x${NDK_CC}" != "x" -a "x`echo $i|grep '\-\<ranlib\>'`" != "x"; then
#if test "$(dirname \"${NDK_CC}\")" = "$(dirname \"${i}\")"; then
NDK_RANLIB=$i
#echo "--- found RANLIB=${NDK_RANLIB}"
#fi
fi
# Get STD C++ lib path
if test "x${STD_CPP_LIB}" = "x"; then
if test "x`echo $i | grep 'libc++_shared.so'`" != "x"; then
MY_CONF_TMP=`echo ${i} | sed -e 's/\\\/\\//g' | sed -e 's/\\"//g'`
if test -e $MY_CONF_TMP; then
STD_CPP_LIB=$MY_CONF_TMP
#else
#echo "--- not good path for libc++_shared.so: ${MY_CONF_TMP}"
fi
fi
fi
done
# Get target host from NDK toolchain dir name
TARGET_HOST=`echo ${NDK_CC} | sed -e 's/.*\/toolchains\/\([^\/]*\).*/\1/'`
# Remove version number suffix (otherwise config.sub will return error, perhaps it just doesn't like the format)
TARGET_HOST=`echo ${TARGET_HOST} | sed -e 's/\-[0-9\.]*$//'`
# Get target from '-target' param when TARGET_HOST is 'llvm'
if test "$TARGET_HOST" = "llvm"; then
TARGET_HOST=`echo ${NDK_CFLAGS} | sed -e 's/.*-target \([^- ]*\).*/\1/'`
fi
# Make sure target host string has 'linux-android' in it
if test "x`echo ${TARGET_HOST} | grep 'linux-android'`" = "x"; then
#TARGET_HOST=`echo ${TARGET_HOST} | sed -e 's/\(.*\)\-\([0-9\.]*\)/\1-linux-android-\2/'`
TARGET_HOST="${TARGET_HOST}-linux-android"
fi
# Set the binutils
if test "x${NDK_TOOLCHAIN}" = "x"; then
if test "x${NDK_AR}" = "x"; then
NDK_CC_DIR=$(dirname "${NDK_CC}")
NDK_AR=`find ${NDK_CC_DIR} -name "*ar" | grep -m 1 -v "gcc"`
fi
export LDFLAGS="${LDFLAGS}"
else
# find ar and ranlib
if test "x${NDK_AR}" = "x"; then
NDK_AR=`find ${NDK_TOOLCHAIN}/bin/ -name "*-ar" | grep -m 1 -v "gcc"`
fi
if test "x${NDK_RANLIB}" = "x"; then
NDK_RANLIB=`find ${NDK_TOOLCHAIN}/bin/ -name "*-ranlib" | grep -m 1 -v "gcc"`
fi
export LDFLAGS="${LDFLAGS} -target ${NDK_TARGET} -gcc-toolchain ${NDK_TOOLCHAIN}"
fi
if test "x${NDK_RANLIB}" = "x"; then
NDK_RANLIB="${NDK_AR} s"
fi
TC_AR=${NDK_AR}
TC_RANLIB=${NDK_RANLIB}
if test "x${TC_AR}" != "x" -a "x${TC_RANLIB}" != "x"; then
export AR="${TC_AR}"
export RANLIB="${TC_RANLIB}"
fi
export TARGET_ABI="${TARGET_ABI}"
export CC="${NDK_CC}"
export CXX="${NDK_CXX}"
export CPPFLAGS="${CPPFLAGS}"
export CFLAGS="${NDK_CFLAGS} ${CFLAGS} ${CPPFLAGS}"
export CXXFLAGS="${NDK_CXXFLAGS} ${CPPFLAGS}"
export LDFLAGS="${NDK_LDFLAGS} ${LDFLAGS}"
export LIBS="${LIBS}"
else
if test "$TARGET_ABI" != "armeabi"; then
echo "$F error: For targets other than 'armeabi', specify --use-ndk-cflags"
exit 1
fi
TARGET_HOST="arm-linux-androideabi"
ANDROID_TC_VER=`ls -d ${ANDROID_NDK_ROOT}/toolchains/${TARGET_HOST}-* | sed 's/clang/0/' | sort -gr | head -1`
ANDROID_TC=`ls -d ${ANDROID_TC_VER}/prebuilt/* | grep -v gdbserver | head -1`
if test ! -d ${ANDROID_TC}; then
echo "$F error: unable to find directory ${ANDROID_TC} in Android NDK"
exit 1
fi
export ANDROID_SYSROOT="${ANDROID_NDK_ROOT}/platforms/${APP_PLATFORM}/arch-arm"
if test ! -d ${ANDROID_SYSROOT}; then
echo "$F error: unable to find sysroot dir ${ANDROID_SYSROOT} in Android NDK"
exit 1
fi
export TARGET_ABI="${TARGET_ABI}"
export CC="${ANDROID_TC}/bin/${TARGET_HOST}-gcc"
export CXX="${ANDROID_TC}/bin/${TARGET_HOST}-g++"
export AR="${ANDROID_TC}/bin/${TARGET_HOST}-ar"
export RANLIB="${ANDROID_TC}/bin/${TARGET_HOST}-ranlib"
export LDFLAGS="${LDFLAGS} --sysroot=${ANDROID_SYSROOT}"
export LIBS="${LIBS} -lc -lgcc"
export CFLAGS="${CFLAGS} --sysroot=${ANDROID_SYSROOT}"
export CPPFLAGS="${CFLAGS} -fexceptions -frtti"
export CXXFLAGS="${CXXFLAGS} -shared --sysroot=${ANDROID_SYSROOT} -fexceptions -frtti"
fi
if test "x${CC}" = "x" || test ! -e ${CC}; then
echo "$F error: compiler not found, please check environment settings (TARGET_ABI, etc)"
exit 1
fi
# C++ STL
# Note: STL for pjsua2 sample app is specified in pjsip-apps/src/swig/java/android/jni/Application.mk
if test "${IS_USING_LLVM}" = "1"; then
# llvm
STDCPP_TC="${ANDROID_NDK_ROOT}/sources/cxx-stl/llvm-libc++"
#STDCPP_CFLAGS="-I${STDCPP_TC}/include"
#STDCPP_LIBS="-lc++_static -lc++abi"
#STDCPP_LIBS="${STDCPP_TC}/libs/${TARGET_ABI}/libc++_shared.so"
STDCPP_LIBS="${STD_CPP_LIB}"
#STDCPP_LDFLAGS="-L${STDCPP_TC}/libs/${TARGET_ABI}/"
else
# gnustl
STDCPP_TC_VER=`ls -d ${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/[0-9]* | sort -gr | head -1`
STDCPP_CFLAGS="-I${STDCPP_TC_VER}/include -I${STDCPP_TC_VER}/libs/${TARGET_ABI}/include"
STDCPP_LIBS="-lgnustl_static"
STDCPP_LDFLAGS="-L${STDCPP_TC_VER}/libs/${TARGET_ABI}/"
fi
if test "x$AR_FLAGS" = "x"; then
AR_FLAGS="rvc"
fi
# stlport
#STDCPP_CFLAGS="-I${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/stlport"
#STDCPP_LIBS="-lstlport_static -ldl"
#STDCPP_LDFLAGS="-L${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/libs/${TARGET_ABI}"
export CFLAGS="${CFLAGS}"
export LIBS="${LIBS} ${STDCPP_LIBS}"
export LDFLAGS="${LDFLAGS} ${STDCPP_LDFLAGS}"
export CPPFLAGS="${CPPFLAGS}"
export CXXFLAGS="${CXXFLAGS} ${STDCPP_CFLAGS}"
export STD_CPP_LIB="${STD_CPP_LIB}"
export AR_FLAGS="${AR_FLAGS}"
# Print settings
if test "1" = "1"; then
echo "$F: calling ./configure with env vars:"
echo " NDK_TOOLCHAIN = ${NDK_TOOLCHAIN}"
echo " CC = ${CC}"
echo " CXX = ${CXX}"
echo " CFLAGS = ${CFLAGS}"
echo " CXXFLAGS = ${CXXFLAGS}"
echo " STD_CPP_LIB = ${STD_CPP_LIB}"
echo " LDFLAGS = ${LDFLAGS}"
echo " LIBS = ${LIBS}"
echo " AR = ${AR}"
echo " AR_FLAGS = ${AR_FLAGS}"
echo " RANLIB = ${RANLIB}"
echo " TARGET_HOST = ${TARGET_HOST}"
echo " TARGET_ABI = ${TARGET_ABI}"
fi
./configure --host=${TARGET_HOST} $*

172
configure-iphone Executable file
View File

@ -0,0 +1,172 @@
#!/bin/bash
F="configure-iphone"
if test "$*" = "--help" -o "$*" = "-h"; then
echo "$F [OPTIONS]"
echo ""
echo "where:"
echo " OPTIONS Other options that will be passed directly to"
echo " ./aconfigure script. Run ./aconfigure --help"
echo " for more info."
echo ""
echo "Environment variables:"
echo " IPHONESDK Optionally specify which SDK to use. Value is the full "
echo " path of the SDK. By default, the latest SDK installed"
echo " will be used."
echo " CC Optionally specify the path of the ARM cross compiler"
echo " to use. By default, the compiler is deduced from the"
echo " SDK."
echo " ARCH Optional flags to specify target architecture, e.g."
echo " ARCH=\"-arch armv7\". Default is arm64."
echo " MIN_IOS Optional flags to specify minimum supported iOS"
echo " versions, e.g. MIN_IOS=\"-miphoneos-version-min=11.0\". "
echo " Default is 11.0."
echo ""
exit 0
fi
# Set the main iPhone developer directory, if not set
if test "x${DEVPATH}" = "x"; then
DEVPATH=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
if test ! -d $DEVPATH; then
DEVPATH=/Developer/Platforms/iPhoneOS.platform/Developer
fi
echo "$F: DEVPATH is not specified, using ${DEVPATH}"
fi
# Make sure $DEVPATH directory exist
if test ! -d $DEVPATH; then
echo "$F error: directory $DEVPATH does not exist. Please install iPhone development kit"
exit 1
fi
# Choose SDK version to use
if test "$IPHONESDK" = ""; then
# If IPHONESDK is not set, use the latest one
for f in `ls $DEVPATH/SDKs/`; do echo $f | sed 's/\(.sdk\)//'; done | sort | tail -1 > tmpsdkname
IPHONESDK=`cat tmpsdkname`.sdk
rm -f tmpsdkname
SDKPATH=${DEVPATH}/SDKs/${IPHONESDK}
echo "$F: IPHONESDK is not specified, choosing ${IPHONESDK}"
elif test -d ${IPHONESDK}; then
# .. else if IPHONESDK is set and it points to a valid path, just use it
SDKPATH=${IPHONESDK}
else
# .. else assume the SDK name is used.
SDKPATH=${DEVPATH}/SDKs/${IPHONESDK}
fi
# Test the SDK directory
if test ! -d ${SDKPATH}/usr/include; then
echo "$F error: unable to find valid iPhone SDK in ${SDKPATH}"
exit 1
fi
# Default CFLAGS if it's not specified
if test "$CFLAGS" = ""; then
CFLAGS="-O2 -Wno-unused-label"
fi
# Default LDFLAGS if it's not specified
if test "$LDFLAGS" = ""; then
LDFLAGS="-O2"
fi
# Test the toolchain directory
TCPATH="${DEVPATH}/../../../Toolchains/XcodeDefault.xctoolchain"
if test ! -d ${TCPATH}/usr/bin; then
TCPATH="${DEVPATH}"
fi
# Determine which gcc for this SDK. Binaries should have the
# full path as it's not normally in user's PATH
if test "${CC}" = ""; then
# Try to use clang if available
ccpath="${TCPATH}/usr/bin/clang"
# Next, try to use llvm-gcc
gccpath="${DEVPATH}/usr/bin/llvm-gcc"
if test -e ${ccpath}; then
export CC="${ccpath}"
elif test -e ${gccpath}; then
export CC="${gccpath}"
else
for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do
archname=`basename ${archpath}`
for gccver in `ls ${archpath}`; do
gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}"
if test -e ${gccpath}; then
export CC="${gccpath}"
fi
done
done
fi
if test ! "${CC}" = ""; then
echo "$F: CC is not specified, choosing ${CC}"
fi
fi
if test "${CC}" = ""; then
echo "$F error: unable to find gcc for ${IPHONESDK}. If you think you have the right gcc, set the full path in CC environment variable."
exit 1
fi
if test "${ARCH}" = ""; then
export ARCH="-arch arm64"
echo "$F: ARCH is not specified, choosing ${ARCH}"
fi
export ARCH_VAL=`echo ${ARCH} | sed 's/\-arch //' | sed -e 's/^[ \t]*//;s/[ \t]*$//' `
if test "${ARCH_VAL}" = "arm64e"; then
export ARCH_VAL="arm64"
fi
if test "${MIN_IOS}" = ""; then
MIN_IOS_VER="11.0"
echo "$F: MIN_IOS is not specified, choosing ${MIN_IOS_VER}"
MIN_IOS="-miphoneos-version-min=${MIN_IOS_VER}"
fi
CFLAGS="${CFLAGS} ${MIN_IOS}"
LDFLAGS="${LDFLAGS} ${MIN_IOS}"
# Set CXX if not set
if test "${CXX}" = ""; then
export CXX=`echo ${CC} | sed 's/clang/clang++/'`
echo "$F: CXX is not specified, using ${CXX}"
fi
# Other settings to feed to configure script.
#ARCH="-arch armv6"
export CFLAGS="${CFLAGS} -DPJ_SDK_NAME=\"\\\"`basename $SDKPATH`\\\"\" ${ARCH} -isysroot ${SDKPATH}"
export LDFLAGS="${LDFLAGS} ${ARCH} -isysroot ${SDKPATH} -framework AudioToolbox -framework Foundation"
export AR="${TCPATH}/usr/bin/libtool -static -o"
export AR_FLAGS=" "
export RANLIB="echo ranlib"
# Use gcc -E as preprocessor instead of cpp, since cpp will find the
# header files in standard /usr/include instead of in isysroot
export CPP="${CC} ${ARCH} -E -isysroot ${SDKPATH}"
# Print settings
if test "1" = "1"; then
echo "$F: calling ./aconfigure with env vars:"
echo " MIN_IOS = ${MIN_IOS}"
echo " CC = ${CC}"
echo " CXX = ${CXX}"
echo " SDKPATH = ${SDKPATH}"
echo " CFLAGS = ${CFLAGS}"
echo " LDFLAGS = ${LDFLAGS}"
echo " AR = ${AR}"
echo " RANLIB = ${RANLIB}"
echo " ARCH = ${ARCH_VAL}"
fi
# And finally invoke the configure script itself
./aconfigure --host=${ARCH_VAL}-apple-darwin_ios --disable-sdl $*
if test "$?" = "0"; then
echo "Done configuring for `basename $SDKPATH`"
echo ""
fi

Some files were not shown because too many files have changed in this diff Show More