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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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