Commit Graph

565 Commits

Author SHA1 Message Date
Benny Prijono c6e165f8d1 Added feature to report peak memory used in caching pool
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@594 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-09 10:05:46 +00:00
Benny Prijono cb832eb539 Added caching pool capacity upon exiting pjsip-perf
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@593 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-08 19:49:02 +00:00
Benny Prijono 63ab356dbb Attempted to fix epoll for Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@592 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-08 19:46:43 +00:00
Benny Prijono bdf202a5b3 More fine tuning on the footprint report generation script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@591 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-08 10:03:46 +00:00
Benny Prijono fe9c9b66b7 Fixed link errors in ioqueue epoll backend
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@590 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-06 20:43:07 +00:00
Benny Prijono 95c63482b1 Set the caching pool workspace size in pjsip-test to 2MB (configurable)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@589 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-06 14:28:45 +00:00
Benny Prijono 53e3ffdee3 Improve the search for correct size in caching pool
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@588 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-06 14:27:31 +00:00
Benny Prijono ed76f51d2e Fixed SIP parsing bugs when in-place escaping is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@587 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-05 21:42:45 +00:00
Benny Prijono 17e0d74d38 Some improvements in footprint generation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@586 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-05 20:45:55 +00:00
Benny Prijono 313b1e4697 Added script, source file, and makefile to calculate PJSIP/PJMEDIA footprint
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@585 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-04 23:48:51 +00:00
Benny Prijono 9c5d8a4ed4 Split ulaw/alaw algorithm from g711.c to alaw_ulaw.c to break circular dependencies between g711 codec and silence detector
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@584 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-04 23:43:31 +00:00
Benny Prijono b6eab2cc6d Various performance improvements in PJSIP: (1) optimizing for common case to minimize stricmp() calls (header names, method, URI schemes), (2) added functionality in scanner to parse and unescape in-place, (3) etc..
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@583 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 22:08:47 +00:00
Benny Prijono ac623b3bca Change all pj_memset to pj_bzero(), where applicable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@582 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 15:19:31 +00:00
Benny Prijono 1479b65e53 Fixed minor bug in pool_caching.c that prevent pool from being reused if the capacity has changed when the pool is released
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@581 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 14:18:17 +00:00
Benny Prijono c03a3c5ffc Added TCP support in pjsip-perf (also tried on Linux)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@580 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 02:31:10 +00:00
Benny Prijono 514ca6b263 Added (the forgotten) pjsip-perf.c into samples dir
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@579 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 01:30:01 +00:00
Benny Prijono 8840610a9f Added pjsip-perf in the samples
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@578 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 01:09:50 +00:00
Benny Prijono 9df1d09d6d PJLIB will print the exception name when there is an unhandled exception
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@577 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03 01:09:20 +00:00
Benny Prijono 7012722f11 Final changeset from the PROTOS testing, fixed misc. crashes. See
mailing list archive for the details

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@576 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 14:53:05 +00:00
Benny Prijono 4c55ba0ef6 Fixed minor bug in SIP transaction: transaction should verify that the method specified in CSeq header in the incoming request matches the method of the request (otherwise it will trigger assertion failure in dialog later)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@575 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 14:26:43 +00:00
Benny Prijono a38ada0d1a Disconnect call when failed to start media when sending 200/OK response in pjsua, also pjsua should not try to force terminate dialog after sending 500 response
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@574 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 14:22:35 +00:00
Benny Prijono ca4cff24bc Added INVITE request verification in siprtp before incoming call is established
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@573 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 14:18:47 +00:00
Benny Prijono f3b6290108 Fixed bug in SDP rtpmap parsing that caused SDP failed to parse the rtpmap attribute (because input is not null terminated)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@572 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 13:36:50 +00:00
Benny Prijono 5d4b53b6e8 Miscellaneous bug fix and improvements in PJMEDIA: (1) more stricker SDP parsing and validation, (2) fixed bug in RTCP attribute generation in SDP, (3) configurable telephone-event payload type
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@571 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 12:29:54 +00:00
Benny Prijono e1f1e38e55 Fixed bugs in scanner: (1) pj_cis_match() takes int argument, so when ASCII character above 127 is given, it will access the array with negative index, and (2) pj_scan_get_newline() may incorrectly eat two newlines when the second newline is a header continuation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@570 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-02 09:29:09 +00:00
Benny Prijono e0b1cdd6dc Fixed minor bug: RTCP session not fully cleared when it is initialized (should bzero everything), causing incorrect stats when it is reused for next call. Also couple of gcc warnings fixed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@569 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-29 15:42:57 +00:00
Benny Prijono b12106f981 Improvements in PJMEDIA to support RFC 3605 (RTCP attribute in SDP) and other changes to improve RTCP communication behind NAT. Also fixed bug related to RTCP reporting changes in revision 565
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@568 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-29 14:45:17 +00:00
Benny Prijono f2a3e51a35 Minor bug fix and enhancements: (1) fixed bug that caused out-of-order status to be raised when incoming sequence number is random, (2) changed RTCP to only calculate jitter when the RTP timestamp of the packet is different than previous one, and (3) change RTP to randomize initial sequence number
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@567 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-29 09:51:09 +00:00
Benny Prijono d28101325a In VC6 workspace, set PJLIB to use IoCompletionPort instead of select() on Release build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@566 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-29 09:45:39 +00:00
Benny Prijono f901651255 Fixed minor bug in the display of packet loss percentage
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@565 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-29 09:41:34 +00:00
Benny Prijono e93e287b5c Major improvements in PJSIP to support TCP. The changes fall into these categories: (1) the TCP transport implementation itself (*.[hc]), (2) bug-fix in SIP transaction when using reliable transports, (3) support for TCP transport in PJSUA-LIB/PJSUA, and (4) changes in PJSIP-TEST to support TCP testing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@563 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 16:46:49 +00:00
Benny Prijono 8d36869046 Enhancements and minor bug-fix in SIP UDP transport: (1) application may specify NULL address when creating the UDP transport, to allow the transport to choose arbitrary port, and (2) receive data buffers were not freed when UDP transport is closed
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@562 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 16:23:23 +00:00
Benny Prijono f171a380fb Removed mutex protection in pjsip_endpt_create_pool() since the pool factory is already thread-safe
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@561 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 16:14:17 +00:00
Benny Prijono ae44a76dea Added PJ_INT64() and PJ_UINT64() macro to construct 64bit constants in portable manner
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@560 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 15:26:43 +00:00
Benny Prijono 01de33bed9 Fixed bug in ioqueue IOCP: accept() callback is called with new socket handle already reset to -1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@559 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 15:23:18 +00:00
Benny Prijono a14fe1f936 Fixed minor compliation warning in transport_udp.c, also corrected misleading comments, and added memory based capture/playback to the Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@558 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 11:48:51 +00:00
Benny Prijono 0e25e7c36f Fixed bug in sockaddr_in: the sin_zero part of the sockaddr_in is not zeroed, causing SIP transport hash table to behave erraticly
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@557 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28 11:10:02 +00:00
Benny Prijono 704f7620ae Fixed bug in transaction: ACK message is not deleted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@556 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-27 12:15:56 +00:00
Benny Prijono 02b8fd8579 Bring the dead pjsip-test up to date with latest pjsip
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@555 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-26 15:12:55 +00:00
Benny Prijono efc9585a73 Finished initial SIP TCP transport support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@554 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-26 10:05:37 +00:00
Benny Prijono 9f0a523919 Added OSERR_ENOTCONN to compat/socket.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@553 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-26 10:03:09 +00:00
Benny Prijono 522cd2988b Added Winsock error code to the error message
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@552 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-26 10:02:28 +00:00
Benny Prijono c7da68c54e Removed PDF docs from the SVN tree!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@551 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-24 11:00:02 +00:00
Benny Prijono 478d431cbd Renamed pjsip_transport_unregister() to pjsip_transport_destroy(), also initial implementation of TCP transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@550 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-23 15:04:54 +00:00
Benny Prijono 2e507c2ab2 Fixed 1st response time not initialized for UAS call in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@549 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-23 15:04:11 +00:00
Benny Prijono 67b0d6209f Minor fix to doxygen documentation to ioqueue.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@548 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-23 15:03:04 +00:00
Benny Prijono 733c67a090 Fixed pjsip-test and added msg_err_test.c for testing parsing errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@547 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-23 01:03:52 +00:00
Benny Prijono e6956991ea Changed siprtp to strictly use one worker thread for all (SIP and media)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@546 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-22 22:57:12 +00:00
Benny Prijono 4d3aa92ac6 Changed siprtp to use timer to schedule transmissions of RTP/RTCP packets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@545 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-22 22:31:48 +00:00
Benny Prijono 819506cb2e Added dq command in pjsua to dump current call quality
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@544 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-22 22:29:51 +00:00