summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib
AgeCommit message (Collapse)Author
2011-09-22Fixed bug in re #1376: pjsua_call_info() could not be called when state is ↵Benny Prijono
disconnected git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3771 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-22More re #1375: fixed bug, the reg_first_retry interval is not copied to ↵Benny Prijono
account config with pjsua_acc_modify()! git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3770 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-22More re #1375: added log showing the interval when scheduling the ↵Benny Prijono
registration retry git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3769 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-22Fixed #1376: Crash if pjsua_call_get_info() is called with disconnected callBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3768 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-21Added option to control first re-registration retry interval. This closes #1375Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3762 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-16Fixed #1371: Soft deadlock when application query call info of other call ↵Benny Prijono
inside a callback. The following APIs should be safe to be called in this situation: - pjsua_call_get_info() - pjsua_call_get_conf_port() git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3751 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-15Fixed #1369: Local state is set to HOLD even if hold operation failsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3749 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-07Always enclose Contact URI with double quote to prevent invalid Contact URI ↵Benny Prijono
if the display part of the AOR contains reserved characters. This fixes #1363 git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3742 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07Misc (re #1252): prevent assertion caused by bad account when scanning ↵Benny Prijono
accounts for presence timer update. Thanks Matt DiMeo for the patch git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3604 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-22Closed #1313 (Account option to disable registration when account is added) ↵Benny Prijono
and closed #1314 (New callback to notify application when registration or unregistration has been initiated). Thanks Tony Jago Million for the patch git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3594 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-20Fixed #1310:Nanang Izzuddin
- protected the account validation in the registration callback. git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3591 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-16Closed #1173: PJSUA callback to allow creation of custom media transports by ↵Liong Sauw Ming
application git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3585 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-16Fixed #1305: Bug in pjsua_call_hangup_all() may cause deadlock (thanks Kees ↵Benny Prijono
van der Bent for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3584 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-27Fixed #1302: Bug in soft deadlock detection may cause program to block ↵Benny Prijono
indefinitely (thanks Attila Magyar for the fix) git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3576 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-20Fixed #1291:Nanang Izzuddin
- fixed bug in SIP invite module, SDP negotiator state should be reverted back after an SDP re-offer is rejected by application. - fixed bug in pjsua_call_on_rx_offer(), evaluating call->audio_index should be done after pjsua_media_channel_create_sdp() is successful. git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3574 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-19Fixed #1268: Option for automatic/manual sending of RTCP SDES/BYE for the ↵Liong Sauw Ming
stream. git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3571 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-19Fixed #1259: Option to use of 100rel in UAS if UAC supports it (thanks ↵Benny Prijono
Marcus Froeschl for the suggestion) git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3570 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-15Fixed #1256: Remove the "ob" parameter if SIP outbound is disabled.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3566 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05Re #1250: Updated the year in all copyright texts with 2011!Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-14Fixed #1232: Possible memory corruptions caused by pjsua_acc_modify() ↵Benny Prijono
(thanks Viktor Krikun for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3538 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-29Re #1224: Fixed silly bug in pjsua_acc_modify(): incremented wrong loop ↵Nanang Izzuddin
counter in updating credential info. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3490 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23Bug re #1161: the user header list was not cloned properlyBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3474 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16Fixed #1209: new enhancement: Option to update Contact URI when sending ↵Benny Prijono
re-INVITE or UPDATE git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3452 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15Re #1205: If refresh timer is already running, it will be cancelled and ↵Liong Sauw Ming
rescheduled with the new delay. This can be useful if app wants to correct the delay after it checks the timeout in the callback. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3444 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15Fixed #1205: Configurable delay before registration refresh setting in ↵Liong Sauw Ming
pjsua_acc_config git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3441 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-11Fixed #1204: Support for refreshing audio device list.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3438 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01Fix #1203: iPhone OS background mode detectionLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3429 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28Initial implementation for re #1202 (PJILB System Information API) for ↵Benny Prijono
Linux/Unix git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-11Re #1161: Support for adding custom presence subscription headers.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3412 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02Fixed #1170 (Assertion when receiving updated SDP offer with all media lines ↵Benny Prijono
removed): - pjsua_media.c checks if audio media is present in the offer; if not, do not set any answer - sip_inv.c checks if app has supplied an answer after on_rx_offer() callback is called, and returnd 488 (Not Acceptable) if not (previously, it will return 200/OK without SDP!) - added a SIPp scenario file to reproduce this git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3383 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01Misc (re #1151): fixed pjsua_acc_config_dup(), some fields, i.e: ↵Nanang Izzuddin
contact_params, contact_uri_params, and auth_pref, were not duplicated properly (thanks Roman Grachev for the report and the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3377 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01Fix #1165:Nanang Izzuddin
- Fixed pjsua_media_channel_create_sdp() to re-calculate audio index of the remote offer, instead of using existing audio index calculated by pjsua_media_channel_init(), as for subsequent SDP offer/answer, pjsua_media_channel_init() may not be called. - Fixed SRTP transport to be able to switch SRTP status from active to inactive/by-passed and vice versa. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3376 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-25Fix #1163:Nanang Izzuddin
- Fixed lock codec to always be done after successful media update, and pend the lock codec until call state CONFIRMED if media update is done in call state EARLY but remote does not support UPDATE method. - Added additional checks in lock_codec() and perform_lock_codec(), e.g: skip locking codec when media deactivated. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3374 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17Fixed #1159: UPDATE is sent to lock codec even though call is being disconnectedBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3371 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16Re #1020: fixed pjsua_acc.c, wrong allocation length for outbound contact.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3368 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16re #1020 (SIP outbound): remove sip.instance and reg-id parameters from the ↵Benny Prijono
Contact when re-registering if the server does not support SIP outbound git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3367 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16Implemented SIP outbound (closed #1020)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3366 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-20Fixed #1149 (Crash when holding the call after receiving SDP answer with ↵Benny Prijono
multiple codecs (thanks Cyril GY for the report)): - avoid using pre-created SDP, but rather use timer and create SDP right when the UPDATE/re-INVITE is about to be sent, to avoid the use of stale pool - also fixed bug in the old code when the lock codec feature is not activated after the call is confirmed git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3349 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12Closed #1144: New presence callback to report subscription state (thanks ↵Benny Prijono
Johan Lantz for the suggestion): - added on_buddy_evsub_state() callback - added sample implementation in pjsua_app.c git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3339 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-05Fix #1143:Nanang Izzuddin
- Fixed no audio bug when pjsua with SRTP optional-with-duplicated-offer calls pjsua with SRTP disabled, by updating active media index after SDP negotiation done. - Fixed bug in generating SDP, pjsua_media_channel_create_sdp(), by making sure all media in the SDP candidate are aligned with current active SDP before calling pjmedia_transport_encode_sdp(). - Fixed bug in modifying SDP for call hold, the media index to be modified was hardcoded to 0, should be active media index. - Added python tests for calls with SRTP optional-with-duplicated-offer. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3334 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-01Closed #1142 (Account based configuration to specify if "c=0.0.0.0" method ↵Benny Prijono
should be used when putting call on hold): - use PJSUA_CALL_HOLD_TYPE_DEFAULT to specify default global call hold type - use pjsua_acc_config.call_hold_type to specify call hold type for the account - call hold type can also be set on per call basis by changing the call_hold_type in the call structure (requires inclusion of <pjsua-lib/pjsua_internal.h> git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3330 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28Close #1137: added field reg_hdr_list into pjsua_acc_config to specify ↵Nanang Izzuddin
custom headers for REGISTER requests of the account. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3326 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28Closed #1139 (Support for tel: URI in PJSUA-LIB):Benny Prijono
- added new PJSUA API: pjsua_verify_url() which can be used for tel: URI - modified and tested according to spec - added new PJSIP error code, PJSIP_ENOROUTESET, to indicate that route set is needed to send to tel: URI - added couple of unit tests (we can't cover the whole tel: URI scenario yet) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3323 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28Close #1138:Nanang Izzuddin
- Added new pjsua registration status callback on_reg_state2(), it includes the whole info from the lower layer registration callback pjsip_regc_cb(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3322 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-20Closed #1129:Nanang Izzuddin
- Added run-time configuration for activating/deactivating stream keep-alive (non-codec-VAD mechanism), also added this config to account settings. - Fixed bug wrong session info pointer "si" in pjsua_media_channel_update() when call audio index is not zero. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3313 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07Re #1120:Nanang Izzuddin
- Added enum pjsua_sip_timer_use for session timer usage types, containing: inactive, optional, required, always - Replaced require_timer (boolean) with above enum in global and account config setting. - Updated pjsua app --use-timer option accordingly. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3305 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07Fixed #1117: Configurable PJSUA-LIB lock timeoutLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3304 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07Fixed #1118: Add last error code to PJSUA-LIB account info structureLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3303 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06Misc (re #1068): fix compile errors/warnings on Symbian S60 5th ed.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3255 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01Implemented core multipart support and support in the invite session (re #1070)Benny Prijono
- incoming multipart message will be handled automatically - for testing, enable HAVE_MULTIPART_TEST in pjsua_app.c git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3243 74dad513-b988-da41-8d7b-12977e46ad98