Commit Graph

1383 Commits

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