[asterisk-dev] [Code Review] 3407: Test Suite: Nominal caller initiated blind transfer tests using PJSIP
opticron
reviewboard at asterisk.org
Thu Apr 3 14:09:00 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3407/#review11485
-----------------------------------------------------------
The pjsip configs here could benefit heavily from use of templates.
/asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/test-config.yaml
<https://reviewboard.asterisk.org/r/3407/#comment21209>
Unless the value of SIPTRANSFER could be set to something else to indicate failure (it doesn't appear that is the case), this should go up with the conditions and the requirements section can just be dropped since it is optional. This also applies to the other usages of the requirements section here and in the other two tests.
- opticron
On March 29, 2014, 12:59 a.m., jbigelow wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3407/
> -----------------------------------------------------------
>
> (Updated March 29, 2014, 12:59 a.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-23446
> https://issues.asterisk.org/jira/browse/ASTERISK-23446
>
>
> Repository: testsuite
>
>
> Description
> -------
>
> These tests cover nominal caller initiated blind transfer tests using PJSIP.
>
> Note: All three tests currently fail due to the issues described in ASTERISK-23501 & ASTERISK-23502.
>
> Each test ensures the presents and values of the following:
> * channel variables SIPREFERREDBYHDR, SIPREFERTOHDR, SIPTRANSFER, and SIPREFERRINGCONTEXT.
> * the BlindTransfer event.
> * the 'Referred-By' header in the INVITE sent to Charlie.
>
> Each test also sets the TRANSFER_CONTEXT channel variable to ensure the transfer still occurs properly. The 'caller_with_hold' test additionally requires and checks the MusicOnHoldStart & MusicOnHoldStop events.
>
> Tests:
> * caller_refer_only: Uses PJSua library. Basic blind transfer without a hold or direct media being performed at any time. Changes were required to the pjsua_mod.py library to be able to associate pjsua accounts with a specific pjsua transport.
> * caller_direct_media: Uses SIPp. Blind transfer with direct media between the endpoints before and after the transfer.
> * caller_with_hold: Uses SIPp. Blind transfer with putting the callee on hold before the transfer.
>
>
> Diffs
> -----
>
> /asterisk/trunk/tests/channels/pjsip/transfers/tests.yaml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/tests.yaml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_with_hold/test-config.yaml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_with_hold/sipp/charlie.xml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_with_hold/sipp/bob.xml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_with_hold/sipp/alice.xml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_with_hold/configs/ast1/pjsip.conf PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_with_hold/configs/ast1/extensions.conf PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/transfer.py PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/test-config.yaml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/configs/ast1/pjsip.conf PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/configs/ast1/extensions.conf PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/test-config.yaml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/sipp/charlie.xml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/sipp/bob.xml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/sipp/alice.xml PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/configs/ast1/pjsip.conf PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/transfers/blind_transfer/caller_direct_media/configs/ast1/extensions.conf PRE-CREATION
> /asterisk/trunk/tests/channels/pjsip/tests.yaml 4911
> /asterisk/trunk/lib/python/asterisk/pjsua_mod.py 4911
>
> Diff: https://reviewboard.asterisk.org/r/3407/diff/
>
>
> Testing
> -------
>
> * Added a pre-dial handler when dialing charlie to add the Referred-By
> header and commented out the header match for the SIPREFERTOHDR channel
> variable. This was to mimic a successful pass to validate the test. This was done for each.
> ** Executed tests in a loop 50+ times to ensure stability.
> * Reviewed test suite & Asterisk logs.
>
>
> Thanks,
>
> jbigelow
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140403/6bc46b7a/attachment-0001.html>
More information about the asterisk-dev
mailing list