Commit Graph

135 Commits

Author SHA1 Message Date
Benny Prijono 938a804c8e More re #1683: added two SIPP scenarios to simulate IP/port change
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4547 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-27 10:08:24 +00:00
Sauw Ming 8ba9a4101d Fixed #1626: Assertion when remote sends re-INVITE with less media
Included in the fix is sipp testing scenario.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4373 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-27 06:44:44 +00:00
Nanang Izzuddin 5a4d6ed11b Re #1523: use random port for PJSUA instance(s) and configurable SIPp port.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4188 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-29 09:01:17 +00:00
Nanang Izzuddin 29e1bc7d75 Re #1523: sipp output redirection to /dev/null somehow caused sipp unresponsive when the test is run under cdash.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4187 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-29 06:41:53 +00:00
Nanang Izzuddin 9df151296a Re #1523: avoid false failure reported by sipp scenario uas-422-then-200-bad-se.xml due to codec mismatch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4184 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-28 10:14:48 +00:00
Nanang Izzuddin 7e18022303 Re #1523:
- runall.py: fix option parser
 - run.py: avoid double newlines in logging
 - mod_sipp.py: redirect sipp output to /dev/null & add sipp error string
 - misc fixes on sipp scenarios, e.g: regex to get via branch, file rename.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4183 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-28 09:16:03 +00:00
Nanang Izzuddin b2c6af2d71 Re #1523: fixed mod_sipp.py problems in executing sipp on unix/mac platforms, i.e: should run on shell and non-background mode.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4179 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 07:37:48 +00:00
Nanang Izzuddin 7ccbd91805 Re #1523: added sipp scenario for call transfer (attended & unattended).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4178 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 06:29:53 +00:00
Nanang Izzuddin 3aba980c0e Close #1523:
- updated scenarios to work with mod_sipp.py (adding config .py file, etc)
 - integrated mod_sipp.py to runall.py
 - removed uas.xml, as it is similar to recvfrom\100_simple.py (REGISTER+resp 200)
 - renamed scenarios (to allow running these SIPp scenarios without .py file):
   - prack_fork.xml -> uas-prack_fork.xml
   - inv_401_retry_after_100.xml -> uas-inv_401_retry_after_100.xml




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4177 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-26 02:28:59 +00:00
Nanang Izzuddin c5da35f9a5 Re #1523: Initial version of SIPp python test module.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4147 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-31 09:51:08 +00:00
Sauw Ming e7dbbc8f30 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3557:r3832

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 09:28:13 +00:00
Nanang Izzuddin 26b7d44274 Re #1346 (python test fixes): Disabled (temporarily) {{{scripts-call/150_srtp_2_3.py}}} as this scenario requires SRTP optional-with-duplicated-media (ticket #1267).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3717 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-19 12:41:40 +00:00
Nanang Izzuddin bb6f57faca Re #1346 (python test fixes): Updated test scenario that requires pjsua to generate multiple media offer using --extra-audio instead of using --use-srtp=3 (optional-with-duplicated-media).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3716 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-19 12:24:48 +00:00
Nanang Izzuddin 33380c5beb Re #1346 (python test fixes): Updated test scenario involving negotiation SRTP-mandatory vs SRTP-disabled or vice-versa, call rejection is using 488 now (was using 406).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3713 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 18:11:08 +00:00
Nanang Izzuddin a1ae1bdec4 Re #1346 (python test fixes): Updated test scenario involving sending REGISTER to pjsua, now pjsua has simple registrar so registration will be accepted (was rejected).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3712 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 17:34:29 +00:00
Nanang Izzuddin aa967ad7da Re #1346 (python test fixes): adjust test scenario to follow the new behavior of pjsua in selecting active media from multiple media with same types, i.e: it will select the first media (previously/1.x it will will select the last).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3711 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 17:31:46 +00:00
Nanang Izzuddin 1f18daa69e Re #1346 (python test fixes): Updated string pattern constants as some pjsua log messages has been changed in 2.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3710 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18 17:26:11 +00:00
Nanang Izzuddin fe68f1dc55 Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 03:42:28 +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
Benny Prijono a77a0da32d Misc (re #1175): added protection against broken pipe exception in python unit test when handling error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3475 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 03:48:13 +00:00
Benny Prijono c45d951901 Migration of current video works from private repository to this repository. This closed #1176
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3392 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:04:30 +00:00
Benny Prijono 0324ba5b56 Fixed #1170 (Assertion when receiving updated SDP offer with all media lines 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: https://svn.pjsip.org/repos/pjproject/trunk@3383 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:41:46 +00:00
Benny Prijono 964bbf6f0a Re #1166 (SDP offer/answer glare): added SIPp scenario file to reproduce this
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3382 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:13:46 +00:00
Nanang Izzuddin 7d242bccbb Fixed #1148:
- Added check in processing answer, if media offer port is zero, just skip negotiation process.
 - Added SIPp test scenario.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3347 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-16 04:40:01 +00:00
Benny Prijono 2e4d89bc5f Re #1146: minor fix in test file comments
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3338 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12 11:43:14 +00:00
Benny Prijono f279c0937d Closed #1146: support for multipart message bodies in incoming NOTIFY requests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3337 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12 11:35:55 +00:00
Nanang Izzuddin 1e952a88ad Fix #1143:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@3334 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-05 16:32:04 +00:00
Benny Prijono c754578e5d Closed #1139 (Support for tel: URI in PJSUA-LIB):
- 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: https://svn.pjsip.org/repos/pjproject/trunk@3323 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 07:43:18 +00:00
Nanang Izzuddin 3387a8e3c1 Re #1120: Fixed session timer python test scripts, pjsua app param --use-timer is requiring param value now.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3307 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-08 05:38:49 +00:00
Nanang Izzuddin 878eda4fd6 Automated test (re #1111): fixed test scenario scripts-recvfrom/301_timer_good_retry_after_422.py to use separate transaction for ACK (pattern matching was done to ACK, instead of INVITE).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3287 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 14:30:17 +00:00
Benny Prijono 777cc68e0f Automated test (re #1111): decrease Speex PESQ threshold as it is not always able to achieve that, possibly depending on the host activity
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3286 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 14:30:15 +00:00
Benny Prijono 1fdc07ce88 Automated test (re #1111): workaround for failed Speex PESQ test caused by progressive discard in the jitter buffer: disable the VAD for the Speex tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3285 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 11:41:30 +00:00
Benny Prijono 3332e7cbc9 More automated test (re #1111): added simple recvfrom test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3284 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 07:38:48 +00:00
Benny Prijono 5ba2a9b02d Misc (re #1110): fixed bug in the python unit test that caused tests to run for much longer than needed because it unnecessarily waits for incoming message until timeout occurs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3283 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-18 07:37:29 +00:00
Nanang Izzuddin 4cfda67104 Misc (re #1068): fix python self-test module 'mod_recvfrom.py':
- increased message waiting timeout to 30s (was 10s)
 - added call_id check in retransmision detection



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3259 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-09 07:31:34 +00:00
Benny Prijono ceb8d3d51a Misc (re #1068): fix the misleading alien socket error from the SIP python self-test module
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3252 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 01:23:55 +00:00
Nanang Izzuddin 31facfc387 Misc (re #1068), updates in python test:
- increased receive buffer size in python test driver function inc_sip.Dialog.wait_msg_from(), the previous buffer size (2048) caused socket exception in receiving large SIP packet.
 - updated verification regex in scripts-sendto/330_srtp_prefer_rtp_savp.py (related to changes in #668: omitting media attribute in disabled/rejected media).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3251 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 01:03:33 +00:00
Nanang Izzuddin 57ab972595 Misc (re #1068): added pjsua win32 executable name list in python test driver (to look up default pjsua executable).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3248 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 07:24:40 +00:00
Benny Prijono 1c1d734e05 Implemented core multipart support and support in the invite session (re #1070)
- incoming multipart message will be handled automatically
 - for testing, enable HAVE_MULTIPART_TEST in pjsua_app.c


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3243 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01 09:48:51 +00:00
Benny Prijono a8f9e622f5 Fixes #1047 (Don't send UPDATE if remote doesn't support it (thanks Bogdan Krakowski for the report)) and fixes #1097 (Support sending UPDATE without SDP). Details:
- Session timer fixes:
    - will look at remote capability in Allow header
    - if UPDATE is supported, will send UPDATE without SDP first. 
      If this fails, will send UPDATE with SDP
    - otherwise will send re-INVITE
 - PJSUA-LIB will look at dialog's remote capability to determine 
   whether re-INVITE or UPDATE should be sent to change default 
   addresses after ICE negotiation.
 - pjsip_inv_update() now allows NULL offer, in which case the
   UPDATE will be sent without SDP.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3215 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21 13:28:55 +00:00
Nanang Izzuddin 0fd92673c1 Fix #1045:
- Fixed invite module to reset SDP negotiator state after incomplete SDP offer-answer in re-INVITE/UPDATE.
 - Added some SIPp test scenarios.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3208 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-16 15:26:18 +00:00
Nanang Izzuddin 93bacd0bfe Fix #476:
- Added lock codec feature to make sure that only one codec is active, by updating media session using UPDATE (if remote supports it) or re-INVITE.
 - Added few SIPp test scenarios.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3206 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15 09:56:39 +00:00
Nanang Izzuddin 1f2f4541fe Fix #1073:
- Fixed SDP negotiation in processing answer: when the answer has less media count, generate disabled-media to match the media count.
 - Added python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3195 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 03:06:03 +00:00
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 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 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 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 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 43b6ecea36 Added --list argument to list tests in runall.py, and fixed build.mak location error due to moving test directory last time
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2398 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 14:52:29 +00:00
Benny Prijono 945aeb2681 Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2392 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-22 18:54:58 +00:00