Commit Graph

53 Commits

Author SHA1 Message Date
Nanang Izzuddin 160a692a7a Misc (re #1068): fixed python test lib inc_sip.py, wrong member name refered in RecvfromTransaction initialization.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3194 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 02:58:23 +00:00
Nanang Izzuddin dfe1be2189 Re #1074: Added python test for SRTP receiving too long key.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3193 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 02:27:41 +00:00
Nanang Izzuddin d61fedcc95 Fix #1088:
- Fixed SDP negotiation to ignore disabled media (with port 0) in the answer.
 - Added a SIPp scenario for reproducing the issue.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3192 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02 23:56:49 +00:00
Benny Prijono fb52191b3e Added exclusion pattern in the unit tests for codecs that are only available with IPP (refs #1041)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3151 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 02:27:23 +00:00
Benny Prijono da0f3e90e8 Refs #1061: added unit test to test handling of empty realm in 401/407 challenge
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3150 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-29 00:23:43 +00:00
Benny Prijono d9998a95d2 More ticket #1041 (unit test framework):
- added support for Intel IPP build configuration and testing


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3143 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 10:05:09 +00:00
Benny Prijono 4fa1602dde Misc (#1026):
- fixed wrong Unix detection in Python automated test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3142 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 09:52:54 +00:00
Benny Prijono 3d71eb0fb1 More ticket #1041 (Unit test):
- Symbian testing (plain, APS/Direct, VAS/Direct)
 - some MMPs need to be modified to support automated configuration
 - renamed Write to FileWrite command in scenario files
 - support for Visual Studio 2010 detection in configure script


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3131 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 13:02:40 +00:00
Benny Prijono 462a67c3c6 More #1041 (Unit test):
- Initial work for Symbian targets


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3125 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27 07:49:18 +00:00
Benny Prijono f9ebaf66dd Ticket #1041 (Unit test):
- Initial Windows/MSVC work


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3122 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27 02:35:06 +00:00
Benny Prijono f44f79b9a3 Ticket #1041:
- initial work for GNU targets


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3120 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-23 14:03:30 +00:00
Benny Prijono 38c975dfa3 Ticket #1031: Automatically handle 423 (Interval Too Brief) response in SIP registration (thanks Tomáš Valenta for the suggestion)
- implemented in sip_reg.c instead of in PJSUA-LIB, so that the functionality can be reused by non-PJSUA-LIB applications
 - also added several Python test scripts



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3105 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-23 11:03:07 +00:00
Nanang Izzuddin 6cc031c24e Ticket #998:
- Updated pjmedia_sdp_parse() to apply direction attribute in session to each media that has no direction attribute (no overriding).
 - Added python tests.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3086 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-03 14:43:25 +00:00
Nanang Izzuddin a45f81e1ea Misc (#951): Fixed wrong media order in SDP response checking in python test script sendto/126.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3011 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 10:58:20 +00:00
Benny Prijono 020bea19d6 Fixed ticket #986: Assertion when authorization PJSIP_AUTH_AUTO_SEND_NEXT is enabled (thanks Zhefeng Du for the report)
- also added SIPp scenario for testing


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2988 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06 04:16:36 +00:00
Nanang Izzuddin 1676d9832b Ticket #954: Added sipp test scenario for issue 1 (bad SE in 200 response, less than min-SE in request).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2987 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-05 13:33:18 +00:00
Benny Prijono 611083d09e Fixed ticket #940: Multiple header rows with the same name may not be completely processed by PJSIP modules
- the parser now collect and aggregate all Supported/Require header fields into single header


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2985 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04 13:17:31 +00:00
Benny Prijono 4dd961b2fb Implement ticket #982: Support for SIP Message Summary/Message Waiting Indication (MWI, RFC 3842)
- PJSIP-SIMPLE:
    - implement MWI
 - PJSUA-LIB:
    - added "mwi_enabled" flag in account config
    - added "on_mwi_info" callback
 - pjsua app:
    - added "--mwi" option to enable MWI on account
    - added simple callback to log the NOTIFY message
 - other:
     - added SIPp scenario files to simulate UAS side
 - build:
     - added MWI support on VS6, VS2005, MMP, and Makefile


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2968 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26 11:21:37 +00:00
Benny Prijono 12c01a959e More ticket #937 (presence revamping):
- Added couple of SIPp scenario files to test various retry scenarios:
    - uas-subscribe-refresh-481.xml: client should resubscribe immediately on receiving 481 on resubscription
    - uas-subscribe-terminated-retry.xml: client should resubscribe upon receiving NOTIFY with some specific termination reasons
 - Added log message when PJSUA-LIB is resubscribing automatically due to above




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2959 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-21 02:37:52 +00:00
Benny Prijono 3492140945 Misc (#951): added couple of SIPp scenario XML files for future use:
- uac-subscribe.xml: generic subscriber
 - uac-options.xml: send OPTIONS


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2954 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 03:05:37 +00:00
Benny Prijono ed93903816 More ticket #965: Receiving (malformed) re-INVITE with the same Via branch parameter value as previous INVITE would raise assertion (thanks Daniel Nanassy for the report)
- added the SIPp XML scenario to reproduce this


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2953 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 03:02:21 +00:00
Benny Prijono 078497473b Ticket #964: Assertion when receiving SDP media with port 0 and without rtpmap attribute for the dynamic payload type formats (thanks Andrey Kovalenko for the report)
- added SIPp scenario to test it with re-INVITE
 - minor: SDP parsing allow the last line without newline (required for SIPp)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2927 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-06 13:33:21 +00:00
Nanang Izzuddin 9d86462106 Ticket #964:
- Fixed creating media answer in SDP negotation to just clone the offer (and update media direction) when media offer specifies port 0 (media inactive).
 - Added pjsua python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2926 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-06 11:29:14 +00:00
Benny Prijono 828c761a14 Fixed ticket #959: Assertion upon receiving malformed SIP messages (thanks Andrey Kovalenko for the report)
- transaction checks for the method before processing incoming ACK request
 - transport layer checks the validity of status code in the response
 - added SIPP scenario to reproduce the bad ACK request


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2915 74dad513-b988-da41-8d7b-12977e46ad98
2009-09-22 17:56:44 +00:00
Benny Prijono 28a48221c1 Misc (#915): several fixes on the python unit tests on Linux:
- added Makefile for cmp_wav and modified the test script
 - test 999: MESSAGE without body is now allowed


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2884 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 08:29:47 +00:00
Nanang Izzuddin 59dffb1a5c Ticket #833:
- Initial version of Session Timers (RFC 4028).
 - Added new options in pjsua app to configure Session Timers settings.
 - Added python tests for Session Timers.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2858 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 12:42:38 +00:00
Benny Prijono 7b40c6c166 Ticket #920: New pjsystest application for testing target system/device. Initial work on Win32 and WM
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2835 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-16 10:36:48 +00:00
Benny Prijono 384a6222be Related to #911:
- added SIPp scenario for scenario when the first NOTIFY immediately terminates the subscription


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2823 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 13:49:54 +00:00
Benny Prijono ce00fa0cef Ticket #911: Crash when receiving NOTIFY after subscription is terminated (thanks Johan Lantz for the report)
- fixed the bug by not processing the NOTIFY if the subscription is already terminated
 - also added SIPp scenario to reproduce the bug


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2822 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 13:47:44 +00:00
Nanang Izzuddin 61d351c9ae Ticket #862: Updated pjsua python test for srtp with crypto tag zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2765 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 12:00:47 +00:00
Benny Prijono 53984d1923 Ticket #760: Enhancements to PUBLISH management (thanks Johan Lantz for the suggestion)
- Changes in PJSUA-LIB
    - retry with fresh request on 412/Conditional Request Failed response
    - changed default Expires in PUBLISH request to none (we will not put Expires), to avoid getting 423/Interval Too Brief response
    - if the PUBLISH fails for any reason, it will be retried on every PJSUA_PRES_TIMER (default 300 seconds), similar to how failed SUBSCRIBE will be retried
 - Changes to publish.h:
    - added API to add headers in every PUBLISH request
 - Added test scenario in Python unit tests



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2661 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 22:19:49 +00:00
Benny Prijono 81a99c3d8d Ticket #693: Allow incoming MESSAGE request without message body
- also added SIPp scenario to test this



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2651 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 14:30:10 +00:00
Benny Prijono 7efa2d60cc Ticket #798: UAC disconnect call when receiving BYE in early state (thanks Gang Liu for the suggestion)
- UAC now handles the BYE, and treat it as out-of-order disconnect request, meaning that it will disconnect the call
 - it will also activate timer to terminate the INVITE transaction, in case final response never arrives
 - added SIPp UAS scenario to test this
 - also added forked 200/OK response SIPp scenario,
 - and fixed the prack_fork.xml SIPp scenario



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2650 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 12:50:16 +00:00
Benny Prijono 99b0437ab4 Fixed ticket #503: Handle the case when CANCEL is responded with 200/OK but 487 is not sent
- added new API pjsip_tsx_set_timeout()
 - set 64*T1 timeout after CANCEL is initiated
 - also added SIPp scenario to simulate the UAS



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2646 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-26 11:02:04 +00:00
Benny Prijono 8ba349f211 Misc (ticket #772): added SIPp scenario for forked PRACK
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2576 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 15:41:30 +00:00
Benny Prijono 1f6331a2ea Misc (ticket #772): added several SIPp scenario files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2575 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 15:04:48 +00:00
Benny Prijono d9e8dfea2d Initial fixes for ticket #747: bugs in parsing SIP torture messages (RFC 4475):
- SIP version components may be separated by whitespaces (e.g. "SIP / 2.0")
 - parsing of mangled header when for unknown/generic header
 - Via parameters were parsed with paramchar rather than token
 - handling NULL character inside quoted string

Some torture messages have been added in the Python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2505 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 11:25:11 +00:00
Benny Prijono 451b2c5ced Ticket #726: bug in parsing tel: URI causing syntax error in processing the request (thanks David Weidenkopf for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2451 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-13 10:13:08 +00:00
Benny Prijono f17942ea46 Ticket #718: Crash when handling incoming request without rport (thanks Norma Steveley and Seth Hinze for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2442 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-06 08:44:23 +00:00
Benny Prijono 18ece2f066 Allow SIP messages in mod_sendto.py to insert fields (ticket #707)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2440 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-06 07:56:09 +00:00
Benny Prijono 459a0ff755 -
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2417 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-05 15:31:25 +00:00
Benny Prijono f84081dfcf -
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2415 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-04 21:28:10 +00:00
Benny Prijono 8a0e97b2c9 Fixed exception error on the Python test due to child process already exiting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2414 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-04 20:15:37 +00:00
Benny Prijono bf7b842aa7 Added dummy configure test for VS and Symbian tests and don't stop the whole tests when exception thrown from ccdash
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2413 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-03 23:53:05 +00:00
Benny Prijono 456e58f013 Fixed error with platform detection in cdash test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2411 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-02 18:51:25 +00:00
Benny Prijono d5962679b7 Test refinements for mingw etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2410 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-02 18:15:07 +00:00
Benny Prijono fee946baa1 Added Symbian test configurator
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2405 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 00:11:17 +00:00
Benny Prijono 0b262934c6 CDash test for MSVC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2404 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-30 16:19:38 +00:00
Benny Prijono 9be224f1e8 Added copyright text in python test files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2401 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 17:57:13 +00:00
Benny Prijono 3978603f6a Changed eol-style on README.TXT, and clean up cfg_site_sample.py
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2400 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 15:04:00 +00:00