summaryrefslogtreecommitdiff
path: root/pjsip/src
AgeCommit message (Collapse)Author
2006-11-25Print media statistic when call is disconnected in pjsua, to assist tracing ↵Benny Prijono
media problems git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@831 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-23Updated Python project with base PJSUA APIBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@824 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed mutex leak in SIP endpoint: timer heap was not destroyedBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@818 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed handles leak upon program exit, by introducing pj_shutdown() and ↵Benny Prijono
pj_atexit(). Also fixed handle leaks in SIP transaction layer and SIP endpoint. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@815 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Added jitter buffer settings in PJSUA-API media configBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@813 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed sound device ID bug: application was unable to use device ID zero ↵Benny Prijono
because this caused pasound.c to autodetect default device git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@812 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed handles leak in SIP endpoint: ioqueue is not freed, causing ↵Benny Prijono
PJ_IOQUEUE_MAX_HANDLES mutex to leak during program exits git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@810 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-19Fixed minor memory leak in SIP TCP transportBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@808 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-15Fixed bug in parser: clone_data member of message body is not set.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@801 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-11Add pjsip_regc_add_headers() APi to set headers to be added Benny Prijono
to the REGISTER request. This solves the problem where headers registered in the initial REGISTER request (such as User-Agent header) are not sent in subsequent reregistration request. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@799 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-11Attended call transfer implementation. The changes involves:Benny Prijono
- Added support for SIP Replaces extension (RFC 3891) - Added pjsua_call_xfer_replaces() to perform attended call transfer. - PJSUA checks and process Replaces header in incoming calls - Added pjsip_ua_find_dialog() API. - Added pjsip_endpt_has_capability() API. - Added pjsip_endpt_send_response2() API. - etc. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@797 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-06Removed multiple Via headers checking in transport, asBenny Prijono
proxies will receive multiple Via headers. Thanks Aldo <acampi at deis.unibo.it>. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@792 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-20Changed the processing of mp3 _options in mp3 writer with regard to bit_rate ↵Benny Prijono
and quality to comply with LAME, also changed the pjsua_recorder_create() parameter to allow specifying mp3 options in one of the parameter git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@785 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-19Support for MP3 recording for Win32 target. Also added "--rec-file" and ↵Benny Prijono
"--auto-rec" option in pjsua to record voice conversion. The "--rec-file" option will record to either .WAV or .MP3 depending on the file extension. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@783 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-19Fixed miscellaneous warnings with gcc compilationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@782 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-18Changed temporary buffer size for duplicating contact info in pjsua-lib to ↵Benny Prijono
1024 from 512 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@781 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-18Some changes to REFER handling in PJSUA-LIB:Benny Prijono
- added callback to report call transfer progress - changed the call transfer request callback name in pjsua - added "--norefersub" option in pjsua. - fixed bug when call transfer is done more than once in the same dialog (dialog usage can not be added) Also removed 7xx status from the SIP status codes. And added pjsip_parse_status_line() to parse sipfrag. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@780 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-16FIXED BUG: pjsip_endpt_send_request() SHOULD DELETE THE REQUEST REGARDLESS ↵Benny Prijono
OF THE STATUS!!! git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@777 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-16Fixed bug in client registration when pjsip_endpt_send_request() returns ↵Benny Prijono
immediate error git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@776 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-13Fixed possible small memory leak in PJSUA registrationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@769 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-11Fixed bug in pjsua_media.c: when sound device is created with different ↵Benny Prijono
sampling rate than the clock rate configuration, resampling port needs to be created. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@765 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-11Changed pjsua_media.c to try different clock rates when opening sound deviceBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@763 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-08Modify sip_transaction.c to send ACK first before notifying upper layer ↵Benny Prijono
about the failure (so that ACK is transmitted first before next INVITE is sent). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@756 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-08Major addition to support DNS SRV resolution in PJSIP:Benny Prijono
- added DNS asynchronous/caching resolver engine in PJLIB-UTIL (resolver.[hc]) - modified SIP resolver (sip_resolve.c) to properly perform DNS SRV/A resolution when DNS resolution is enabled. - added dns_test.c in PJSIP-TEST for testing the SIP resolver. - added nameserver configuration in PJSUA-LIB - added "--nameserver" option in PJSUA. - updated project/Makefiles and doxygen documentation. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@753 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-26Added support for specifying IP address in PJSUA-LIB/pjsua.Benny Prijono
This option can be used for example to select the IP interface of SIP/RTP/RTCP transports, or to specify the public IP address of NAT/router in case port forwarding is used. For SIP transports, this feature works for both UDP and TCP transports. Changes: - added public_ip field in pjsua_transport_config, and change SIP and media transport creation to consider this option. - added --ip-addr option in pjsua - added pjsip_tcp_transport_start2() which allows specifying alternate TCP published address when creating TCP transports. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@742 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-25Tests with other user agents revealed some bugs whichBenny Prijono
have been fixed below: - some UAs sends "telephone-event/8000/1" instead of "telephone-event/8000", which caused SDP negotiation to fail. Fixed in sdp_neg.c. - codec name was (incorrectly) compared case-sensitively, causing negotiation to fail. Fixed in sdp_neg.c. - Also improved error reporting in SDP negotiation by introducing few more error codes. - Added Warning header in Not Acceptable response sent by pjsip_inv_session when SDP negotiation fails. - PJSUA-LIB will try to negotiate both SDPs before sending 100 response. - Fixed bug in iLBC codec when setting the mode to 30. Also: - Echo cancellation by default is disabled now since it doesn't seem to work. Further investigation needed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@738 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-24Fixed several bugs in PJSUA-API:Benny Prijono
- in some condition, when outgoing call fails, call count incorrectly decremented to -1 - introduce account priority in pjsua_acc_config, and improve the account searching for incoming calls - pjsua will hangup call after sending transfer/REFER request. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@737 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-22Handle incoming empty packets sent by some user agents (to refresh NAT)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@735 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-22Fixed few bugs that seem to have been introduced by new dialog Benny Prijono
locking algorithm: - Fixed crash in PJSUA-API when initiating client subscription - Fixed another crash in PJSUA-API when hanging-up call Also fixed SDP negotiator: - add a=inactive when rejecting media line Also increase maximum log size from 1500 to 2000 since some SIP packet is quite large. A little bit of Warning: ** THIS MAY AFFECT APPLICATION'S STACK USAGE ** git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@734 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-22In pjsua, outgoing REFER now always put Refer-Sub: falseBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@733 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-19Fixed race-condition/deadlock problems in the dialog/user agent layer Benny Prijono
all the way up to PJSUA-API: - standardized locking order: dialog then user agent, and dialog then PJSUA - any threads that attempt to acquire mutexes in different order than above MUST employ retry mechanism (for an example, see acquire_call() in pjsua_call.c). This retry mechanism has also been used in the UA layer (sip_ua_layer.c) since it needs to lock user agent layer first before the dialog. - introduced pjsip_dlg_try_inc_lock() and PJSUA_TRY_LOCK() to accomodate above. - pjsua tested on Quad Xeon with 4 threads and 200 cps, so far so good. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@729 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-19Fixed misc compilation warnings (mostly about unused variables)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@728 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Fix the local IP address resolution issue in PJSIP, PJMEDIA, and PJSUA, by ↵Benny Prijono
adding a new API pj_gethostip() to resolve the default local IP address of local host. This new function will work even when local hostname resolution is not set correctly, by detecting the default IP interface in the system. Also fix compile warnings in iLBC. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@721 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Added pjsip_transport_register_type() API to register new transport type.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@720 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Added account ID in pjsua_call_info.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@719 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Added --duration option in PJSUA to limit the maximum duration of calls. ↵Benny Prijono
Also added pjsip_generic_string_hdr_init2() to initialize temporary SIP header that is allocated in the stack. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@715 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-13Fixed bug in client REGISTER: crashed when application calls ↵Benny Prijono
pjsip_regc_register()/pjsip_regc_send() while previous REGISTER request has not been answered with final response. This occurs for example when pjsip_regc_register() is called in quick successions. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@714 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-13SIP methods are now compared case-sensitively (previously it was ↵Benny Prijono
case-insensitive) because the standard says so. There's no ill effect of the old behavior, but it's still important that we do things according to what the standard says. Also a little change in string implementation (use memcmp() instead of strncmp()), an increase the version number from 0.5.7.6 to 0.5.7.7. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@713 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-13Fixed bug in event subscription: for event subscriptions established by ↵Benny Prijono
non-SUBSCRIBE method (such as REFER), the method to refresh/unsubscribe subscription would still be SUBSCRIBE, not the initial method to establish subscription. There's no known ill effect of this bug (that I know of), but it's still important that this one has been fixed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@712 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-09Fixed authentication with qop: nc is not printed, and set nc length to 8 ↵Benny Prijono
bytes (sipcenter proxy server complained about this). It's now working fine with or without qop. Default caching and auto_send still set to disabled. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@696 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-24Just updated doxygen documentationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@690 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-20Added initial "norefersub" (RFC 4488) implementation in PJSUA-LIB, and also ↵Benny Prijono
properly register all supported SIP method, accepted content type, and supported extensions to endpoint. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@688 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-15Support for PUBLISH (RFC 3903):Benny Prijono
- API BREAK: pjsua_pres_create_uac() API CHANGED!! Added options in the function, to allow creating SUBSCRIBE without ";id=" parameter in the Event header. - the generic event publication in pjsip-simple/publish.[hc] - split PIDF and X-PIDF body generation and parsing into pjsip-simple/presence_body.c. - allow NULL in module parameter in pjsip_endpt_add_capability() - added "--publish" option in PJSUA. - by default, PJSUA-LIB will not add ";id=" parameter in Event header in the SUBSCRIBE request since lots of server and user agents don't support this correctly. - Set version to 0.5.7.6. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@685 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-15Added initial PUBLISH client support, and also default account selection in ↵Benny Prijono
pjsua/pjsua-lib git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@683 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-12Improved logging consistency and added more logging info in verbosity 6Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@675 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-11Fixed bugs in previous deadlock workaroundBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@673 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-10Attempt to fix the race condition in dialog locking.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@671 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-08Fixed bugs in client registration (sip_regc.c): when re-registration failed ↵Benny Prijono
to send the request, application callback is not called. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@663 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-08Added logging in sip_regc.c to report the error when pjsip_regc_send() fails ↵Benny Prijono
(because no error will be logged when re-registration fails). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@662 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-07Added Ctrl-C handler for pjsua Windows, and added average bps in media ↵Benny Prijono
statistic. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@660 74dad513-b988-da41-8d7b-12977e46ad98