sauwming
033e4d7ae3
Fixed printf format warnings ( #3813 )
2023-12-27 10:32:32 +08:00
silentindark
c224f26420
Fix warnings ( #3778 )
2023-11-16 15:30:03 +08:00
jimying
a4c9dc0c9b
Fix scan-build reports ( #3471 )
2023-04-06 10:26:10 +08:00
bennylp
5ed9461bbe
Replace unsafe string functions such as strcpy, strncpy, strcat, and sprintf with newly implemented pj_ansi_strxcpy, pj_ansi_strxcpy2, and pj_ansi_strxcat
2023-03-24 11:11:20 +07:00
bennylp
6340cd143f
Fixed printf style format warnings
2023-03-23 08:30:44 +07:00
bennylp
398fabd77f
Fixed printf style format warnings
2023-03-22 08:45:23 +07:00
jimying
b4184bb56d
Fix build with CFLAGS -Wextra warning reports ( #3428 )
2023-03-14 09:56:18 +08:00
Riza Sulistyo
5ac9104514
Expand tab to spaces and remove $Id$ ( #3292 )
2022-11-22 16:26:54 +07:00
Nanang Izzuddin
bcabd15299
Re #1298 : Updated PJSIP* to use PJ_ERROR consistently.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5984 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 08:18:18 +00:00
Nanang Izzuddin
4ad9acd150
Fixed #2191 :
...
- Stricter double timer entry scheduling prevention.
- Integrate group lock in SIP transport, e.g: for add/dec ref, for timer scheduling.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5971 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 08:42:45 +00:00
Sauw Ming
b27b7e0201
Fix #2048 : Add compile time option to disable sleep in sip endpoint's handle events on ioqueue polling's error
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5668 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-29 02:43:05 +00:00
Nanang Izzuddin
6ab00bd2be
Misc (re #1945 ): Updated array limit checks and docs in pjsip_evsub_register_pkg() and pjsip_endpt_add_capability(). Thanks Alexei Gradinari for the patch.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5397 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-26 02:58:44 +00:00
Riza Sulistyo
ec369c2ffe
Re #1838 : Enable application to provide its own external resolver implementation.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5055 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08 10:10:44 +00:00
Nanang Izzuddin
70bde3b601
Re #1519 : Misc fixes in pjsua2:
...
- Changed AccountConfig::toPj() signature, because a pjsua_acc_config instance should not be copied/assigned to another pjsua_acc_config instance as it contains list.
- Fixed assertion in Endpoint destructor caused by access to pjlib mutex after pjlib is destroyed.
- Changed VS2005 sample_debug project to allow debugging C++ code such as pjsua2_demo.cpp.
- Compile warnings on VS2005.
- Fixed SWIG python unit test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4692 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 11:44:51 +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
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
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
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
Nanang Izzuddin
d9a37eda25
Re #1590 : Fixed compile error 'invalid conversion from `pj_list_type*' to `pjsip_module*' on Symbian (thanks Rubel for the report).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4291 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-01 03:45:40 +00:00
Benny Prijono
6c80455c1e
Close #1590 : APIs to facilitate pending processing of pjsip_rx_data
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4275 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-04 06:11:58 +00:00
Benny Prijono
30154d3fbc
Re #1527 : added debugging facility to the timer heap. By enabling PJ_TIMER_DEBUG, application can use pj_timer_heap_dump() or pjsip_endpt_dump() to dump the timer entries along with the source location where it is scheduled from. The macro will also enable dumping the timer heap entries when the SIP endpoint is being destroyed
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4154 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-05 10:41:17 +00:00
Benny Prijono
28d3c56283
Re #1474 : Merged all changes from 1.12 - HEAD (from the 1.x branch)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Benny Prijono
b90fd3879d
Modified the libraries to use the new log indentation feature re #1372
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3753 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-18 14:59:56 +00:00
Nanang Izzuddin
a62ffc9d03
Re #1250 : Updated the year in all copyright texts with 2011!
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Nanang Izzuddin
3a86f326d0
Fix #1212 :
...
- Updated pj_register_strerror() to just return PJ_SUCCESS when the same range
and handler is being re-registered.
- Removed the usage of static flag of error string handler registration in some
modules, which prevent the re-registration of the handler, e.g: in restarting
pjsua, as such flags never got reseted.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3455 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 07:34:16 +00:00
Nanang Izzuddin
2fb937eb02
Ticket #1032 :
...
- Initial version of server domain name verification:
- Updated SSL certificate info, especially identities info
- Updated verification mechanism as in the specifications in ticket desc.
- Added server domain name info in pjsip_tx_data.
- Added alternative API for acquiring transport and creating transport of transport factory to include pjsip_tx_data param.
- Server identity match criteria:
- full host name match
- wild card not accepted
- if identity is URI, it must be SIP/SIPS URI
- Initial version of transport state notifications:
- Added new API to set transport state callback in PJSIP and PJSUA.
- Defined states: connected/disconnected, accepted/rejected, verification errors.
- Minors:
- Updated SSL socket test: dump verification result, test of requiring client cert, and few minors.
- Updated test cert to include subjectAltName extensions.
- Added SSL certificate dump function.
- Updated max number of socket async operations in Symbian sample apps (RSocketServ::Connect()) to 32 (was default 8).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3106 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24 05:43:34 +00:00
Benny Prijono
844653c1f2
Updated copyright notice in all files to Teluu Inc., and changed the year as well
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 17:27:53 +00:00
Benny Prijono
c671bf86e8
pjsip_endpt_handle_events2() is loosing the error code in MacOS X if pj_ioqueue_poll() returns error. This is because pj_thread_sleep() always set errno to ETIMEDOUT on MacOS X (thanks Ruud Klaver for the report)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2226 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-19 16:18:02 +00:00
Benny Prijono
f4ca835863
Fixed ticket #529 : memory leak on Symbian and possibly handle leaks on all platforms when application quits while transactions have not been terminated
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2127 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 21:10:25 +00:00
Benny Prijono
32177c0418
Large changeset to replace all occurences of year 2007 with 2008 in the copyright notice
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 22:44:47 +00:00
Benny Prijono
1f61a8f8af
Ticket #354 : continuing work to port the Symbian libraries to .DSO format
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1417 74dad513-b988-da41-8d7b-12977e46ad98
2007-08-16 10:11:44 +00:00
Benny Prijono
dedb7fc096
Ticket #352 : added PJSIP_CHECK_VIA_SENT_BY configuration to turn off Via sent-by checking for SIP responses, to support IP address change
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1402 74dad513-b988-da41-8d7b-12977e46ad98
2007-07-10 01:46:08 +00:00
Benny Prijono
1103222feb
Fixed ticket #311 : PJSIP resolver is not destroyed on shutdown (thanks Martin Peterzon)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1323 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-30 15:20:56 +00:00
Benny Prijono
d17a5e9b7b
Fixed Symbian (aka C++ mode) compilation error because of recent change in transport key in ticket #306 (thanks Esbjorn Dominique)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1317 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-29 11:51:45 +00:00
Benny Prijono
a1e6968900
HUGE changeset to make the rest of the libraries compile with C++ mode
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1266 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-11 15:14:34 +00:00
Benny Prijono
5feee2eb30
PJSDP port to Symbian
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1240 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-01 16:54:54 +00:00
Benny Prijono
c97608ee7f
ICE (work in progress): integration with PJSUA
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1098 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-23 16:34:20 +00:00
Benny Prijono
23be3382f0
Fixed ticket #145 : pj_ioqueue_poll() blocks forever because of invalid timeout value (thanks Igor S)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1017 74dad513-b988-da41-8d7b-12977e46ad98
2007-02-28 15:36:19 +00:00
Benny Prijono
a771a51a61
Ticket #110 : HUGE HUGE changeset to replace all occurence of year 2006 with 2007 in copyright notice in all sources
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@974 74dad513-b988-da41-8d7b-12977e46ad98
2007-02-19 01:13:53 +00:00
Benny Prijono
720d0a8365
Workaround for ticket #50 : added API to lock/bind transaction, dialog, and regc to a specific transport/listener
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@879 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-12 06:37:35 +00:00
Benny Prijono
f762ee7376
Fixed ticket #29 : calling pjsua_init() to reinitialize the whole libraries after pjsua_destroy() is called
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@839 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-01 11:14:37 +00:00
Benny Prijono
1f7cf1500b
Fixed mutex leak in SIP endpoint: timer heap was not destroyed
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@818 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21 18:41:47 +00:00
Benny Prijono
af1bb1e09f
Fixed handles leak upon program exit, by introducing pj_shutdown() and pj_atexit(). Also fixed handle leaks in SIP transaction layer and SIP endpoint.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@815 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21 12:39:31 +00:00
Benny Prijono
19993c6af6
Fixed handles leak in SIP endpoint: ioqueue is not freed, causing PJ_IOQUEUE_MAX_HANDLES mutex to leak during program exits
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@810 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21 08:37:17 +00:00
Benny Prijono
053f522223
Attended call transfer implementation. The changes involves:
...
- 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: https://svn.pjsip.org/repos/pjproject/trunk@797 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-11 16:16:04 +00:00
Benny Prijono
fa9e5b1a6c
Major addition to support DNS SRV resolution in PJSIP:
...
- 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: https://svn.pjsip.org/repos/pjproject/trunk@753 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-08 12:39:34 +00:00
Benny Prijono
3a5e1ab170
Support for PUBLISH (RFC 3903):
...
- 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: https://svn.pjsip.org/repos/pjproject/trunk@685 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-15 20:26:34 +00:00
Benny Prijono
2bbd710f64
Fixed several bugs related to TCP:
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@610 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-18 00:10:53 +00:00
Benny Prijono
775a1b2268
Added PJSIP_MAX_NET_EVENTS configuration to pjsip
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@602 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-11 09:53:27 +00:00
Benny Prijono
3242575737
Do several ioqueue poll in one go in pjsip_endpoint, because IOCP can only report one event at a time
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@598 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-10 21:30:34 +00:00