Commit Graph

842 Commits

Author SHA1 Message Date
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
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 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
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
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 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
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
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
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
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
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
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 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
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 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
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
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
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 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
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
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 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
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 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
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
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
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 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
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
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 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
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
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
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 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
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 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 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
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 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
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 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
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 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
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 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
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
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 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 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 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
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
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
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 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 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 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
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
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
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
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 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
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
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 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 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
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
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
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 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
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
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
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
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
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 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
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
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 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
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
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
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
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 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
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
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 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 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
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
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
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 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
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
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
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
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
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
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 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 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 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 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 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
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
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
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
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 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 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 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 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 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
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 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 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
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 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
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
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
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 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
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
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
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
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 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
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
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
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 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
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
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
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 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
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
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 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 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
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
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
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
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 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
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
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 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
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
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
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
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
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
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 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 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
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
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
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 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
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 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 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
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 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
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
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 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
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 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
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
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
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 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
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
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 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 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 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
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
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
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 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 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
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 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
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
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
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 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
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
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
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
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 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 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
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
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 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
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 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 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
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
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 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