summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-29Misc(re #1068): Revert the default trace to 0.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3229 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29Misc(re #1068): fixed crash because pj_http_req may now be destroyed after ↵Liong Sauw Ming
calling on_complete callback. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3228 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29Ticket #1018:Liong Sauw Ming
Application may now destroy pj_http_req inside on_complete callback. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3227 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26Fixed segfault Re #740Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3226 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26Misc (re #1068): fixed possible overwritten field data, write_data_t::flags, ↵Nanang Izzuddin
in SSL sock OpenSSL implementation. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3225 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26Fix #740:Nanang Izzuddin
- Fixed zeroed/unset RTP timestamp in RTCP sender report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3224 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24Fixed #1039: Add Allow header in outgoing REGISTER request (thanks Daniel ↵Benny Prijono
Anens for the info) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3223 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24Fixed #1081: Implement ICE option tag (RFC 5678)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3222 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24Fix #1075:Nanang Izzuddin
- Fixed SRTP transport to only (re)start the SRTP state when the SRTP crypto settings are updated. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3221 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Re #1094: fixed compilation error in previous fix in r3218Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3220 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Fixed #1079 (Media transport should be kept alive during double-hold ↵Benny Prijono
scenario). Details: - now the stream will be destroyed but the media transport will be kept alive during doublehold scenario - small fix in SRTP to also negotiate crypto even when the media is marked as inactive, otherwise it's possible that an "optional" endpoint would create RTP/AVP offer and send it to "mandatory" endpoint, which would be rejected and cause the media port to be set to zero git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3219 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Fixed #1094: Transmit RTCP keep alive even when the stream is paused (thanks ↵Benny Prijono
Johan Lantz for the suggestion) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3218 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Another unterminated SDP offer/answer negotiation fix (Re: #1045):Benny Prijono
- fixed unterminated negotiation if our media transport rejects incoming offer (e.g. due to mismatch SRTP transport) with 488. - to fix the above, modified the SDP negotiator (sdp_neg.[hc])'s pjmedia_sdp_neg_cancel_offer() to also be able to cancel in remote offer state - also fixed the bug introduced previous Session Timer fix (Re: #1047), which cause SDP negotiator's state to be cleared after failed UAC UPDATE transaction is terminated, which means UPDATE can only be sent 5 seconds after the last UPDATE if the last UPDATE failed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3217 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-22Fixed #1095 (New option to control the Route headers in REGISTER request). ↵Benny Prijono
Details: - added new account config setting: reg_use_proxy. This contains bitmask values to indicate whether outbound proxies and account proxies are to be added in the REGISTER request. Default value is to add both. - added new pjsua cmdline option to control this: --reg-use-proxy - miscellaneous minor fixes in other pjsua cmdline arguments git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3216 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21Fixes #1047 (Don't send UPDATE if remote doesn't support it (thanks Bogdan ↵Benny Prijono
Krakowski for the report)) and fixes #1097 (Support sending UPDATE without SDP). Details: - Session timer fixes: - will look at remote capability in Allow header - if UPDATE is supported, will send UPDATE without SDP first. If this fails, will send UPDATE with SDP - otherwise will send re-INVITE - PJSUA-LIB will look at dialog's remote capability to determine whether re-INVITE or UPDATE should be sent to change default addresses after ICE negotiation. - pjsip_inv_update() now allows NULL offer, in which case the UPDATE will be sent without SDP. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3215 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21Misc (re #1068): added new API pjmedia_master_port_wait() to poll master ↵Nanang Izzuddin
port clock when it is created with PJMEDIA_CLOCK_NO_ASYNC flag. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3214 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-20Fixed #1086 (New option to update the Contact URI in a single REGISTER ↵Benny Prijono
request): added contact_rewrite_method account config to control this. Default is to use the new mechanism, i.e. the single REGISTER method. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3213 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-19Fixed #1077: In ICE stream transport (ice_strans.c), automaticaly retry ↵Benny Prijono
allocation once if TURN allocation fails. If this allocation retry also fails, notify the TURN user via on_ice_complete() callback. Details: - added new PJ_ICE_STRANS_OP_KEEP_ALIVE operation - also added new on_ice_transport_error() pjsua callback to allow application to react to the failure. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3212 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-16Fix #1045:Nanang Izzuddin
- Fixed invite module to reset SDP negotiator state after incomplete SDP offer-answer in re-INVITE/UPDATE. - Added some SIPp test scenarios. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3208 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-16Misc (re #1068): fixed possible reading string beyond the buffer in ↵Benny Prijono
pj_strltrim() if the string only contains whitespaces (thanks Jones Desougi for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3207 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15Fix #476:Nanang Izzuddin
- Added lock codec feature to make sure that only one codec is active, by updating media session using UPDATE (if remote supports it) or re-INVITE. - Added few SIPp test scenarios. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3206 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15Misc fixes (re #1068): fixed aconfigure to handle the case where ifaddrs.h ↵Benny Prijono
is present but the functions are not available, as reported to happen with uClibc (thanks Jones Desougi for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3205 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15Misc (Re #1068): initialize rtpmap string with NULL as it generates ↵Benny Prijono
uninitialized memory ptr read under Valgrind. Thanks Jones Desougi for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3204 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15Re #1068 (Misc Fixes): changed timeout timer value initialization in ↵Benny Prijono
sip_transaction.c to copy the value from TD timer value instead of calculating it directly from T1. This would enable customization of the timeout value by changing PJSIP_TD_TIMEOUT macro. Previously the only way to modify this is to change the T1 value, which is undesireable. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3203 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-11Close #1072:Nanang Izzuddin
- Added API pjmedia_codec_g722_set_pcm_shift() to enable configurable level-adjusment setting. - Also added macro PJMEDIA_G722_DEFAULT_PCM_SHIFT (default value is 2) to accomplish 14-16 bit PCM conversion for G722 input/output. - Added a feature in G722 to stop level-adjusment/PCM-shifting when clipping occured, compile-time configurable via PJMEDIA_G722_STOP_PCM_SHIFT_ON_CLIPPING macro. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3202 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-11Fix #1093:Nanang Izzuddin
- Fixed memory leak of CVoIPFormatIntfc instances in S60 VAS. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3201 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-09Re #1089:Nanang Izzuddin
- Fixed compile error (on Symbian) incompatible types between int and pjsip_dialog_cap_status. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3200 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-07Fix #1085:Nanang Izzuddin
- Added new codec G721, as alias for G726-32. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3199 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-04Re #668:Nanang Izzuddin
- Fixed process_answer() of SDP negotiation, when no common format in a media, instead of returning error, it should just deactivate the media (offer & answer) and continue negotiating next media. - Generalized the way of deactivating media: set port to 0 and remove all attributes. - Added new API pjmedia_sdp_media_clone_deactivate() to clone media and deactivate the newly cloned media. - Updated PJMEDIA SDP negotiation test. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3198 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Make TURN pool memory sizes compile-time configurable (misc, re: #1068)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3197 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Re #1089:Nanang Izzuddin
- Added a feature in dialog to store and retrieve remote capabilities dug from the remote messages. - Added few APIs in dialog to query and update remote capabilities, also added an API in pjsua_call to query whether a capability is supported by remote. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3196 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Fix #1073:Nanang Izzuddin
- Fixed SDP negotiation in processing answer: when the answer has less media count, generate disabled-media to match the media count. - Added python test. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3195 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Misc (re #1068): fixed python test lib inc_sip.py, wrong member name refered ↵Nanang Izzuddin
in RecvfromTransaction initialization. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3194 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Re #1074: Added python test for SRTP receiving too long key.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3193 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02Fix #1088:Nanang Izzuddin
- Fixed SDP negotiation to ignore disabled media (with port 0) in the answer. - Added a SIPp scenario for reproducing the issue. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3192 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02Fix #1074: Fixed SRTP crypto parser to preverify the key length.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3191 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02Fixed #1092 (Crash when receiving various messages with "Contact: *" header ↵Benny Prijono
format) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3190 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-01Fix #1091: Increase the default maximum number of outstanding asynchronous ↵Benny Prijono
operations of Symbian socket server to 32 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3189 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-01Fix #1090: Disable the "Bug in branch_param generator (i.e. not unique)" ↵Benny Prijono
assertion. This also fixes the hang problem when building the app in Release mode (assertion disabled), because the transaction is destroyed without being unlocked, causing the subsequent transaction unlock to loop indefinitely. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3188 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26Re #1066, in process_m_answer() of sdp_neg.c:Nanang Izzuddin
- Fixed removing any unmatching formats in the remote-answer to also work with dynamic payload type. - Updated reordering formats priority in the offer based on the answer to also work with dynamic payload type. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3187 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26Misc (re #1068): crash in pj_sockaddr_parse2() if NULL of empty string is ↵Benny Prijono
given (thanks Joe Meade for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3186 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26Fix #1087:Nanang Izzuddin
- Moved auto reregistration scheduling to be before the registration callback. - Updated validations in auto_rereg_timer_cb() & schedule_reregistration(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3185 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26Misc (re #1068): AMR codec in IPP codecs should apply Change Mode Request ↵Nanang Izzuddin
(from AMR payload) only when it is different from current encoding mode. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3184 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19Re #1068 (misc fix): added --log-append option in pjsua to not overwrite ↵Benny Prijono
existing log file git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3183 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19Fix #1071: Increase default maximum SIP packet size to 4000Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3182 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19Misc fix (re #1068): set default alignment in the configure script to 8 ↵Benny Prijono
bytes on Sparc (thanks David Coppa for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3181 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19Changed pj_thread_get_prio_max() to return 0 on OpenBSD because it doesn't ↵Benny Prijono
support it (thanks David Coppa for the patch)(re #1068) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3180 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-18Fix #1053: change the libaries' path type to relativeLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3179 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-18Fix #1052: change library path as a relative path.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3178 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17Re #1051: set default new coreaudio backend to disabledBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3177 74dad513-b988-da41-8d7b-12977e46ad98